Commit f37a99c 1 parent 1f6cc42 commit f37a99c Copy full SHA for f37a99c
File tree 17 files changed +95
-29
lines changed
17 files changed +95
-29
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
name : test
2
15
3
16
on :
Original file line number Diff line number Diff line change
1
+ # Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
1
15
# If you prefer the allow list template instead of the deny list, see community template:
2
16
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
3
17
#
Original file line number Diff line number Diff line change
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
{
2
15
// Use IntelliSense to learn about possible attributes.
3
16
// Hover to view descriptions of existing attributes.
Original file line number Diff line number Diff line change 3
3
An implementation of the W3C Web Cryptography API specification (https://www.w3.org/TR/WebCryptoAPI/ ) for Go using Go's standard ` crypto ` library.
4
4
5
5
> [ !IMPORTANT]
6
- > Whilst we try to ensure that we don't commit breaking changes until we release our first stable version, there
6
+ > Whilst we try to ensure that we don't commit breaking changes until we release our first major version, there
7
7
> may be times where decisions made during early development no longer make sense and therefore require
8
- > breaking changes. Please be mindful of this when updating your version of this library until we hit v1.0.0.
8
+ > breaking changes. Please be mindful of this when updating your version of this library until we hit ` v1.0.0 ` .
9
9
10
10
## Contents
11
11
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // Package webcrypto implements the WebCrypto API specification (https://www.w3.org/TR/WebCryptoAPI/).
15
16
package webcrypto
16
17
17
18
import "fmt"
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.package rsa
14
14
15
- // Package rsa implements RSA operations as specified in the algorithm overview
16
- // §19 https://www.w3.org/TR/WebCryptoAPI/#algorithm-overview
15
+ // Package rsa implements RSA operations;
16
+ // RSA-OAEP as specified in §30 ( https://www.w3.org/TR/WebCryptoAPI/#rsa-oaep).
17
17
package rsa
18
18
19
19
import (
Original file line number Diff line number Diff line change
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.package rsa
14
+
15
+ // Package rsa implements RSA operations;
16
+ // RSA-OAEP as specified in §30 (https://www.w3.org/TR/WebCryptoAPI/#rsa-oaep).
1
17
package rsa
2
18
3
19
import (
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
10
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
// See the License for the specific language governing permissions and
13
- // limitations under the License
13
+ // limitations under the License.package rsa
14
14
15
+ // Package rsa implements RSA operations;
16
+ // RSA-OAEP as specified in §30 (https://www.w3.org/TR/WebCryptoAPI/#rsa-oaep).
15
17
package rsa
16
18
17
19
import (
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // Package sha implements the SHA operations as specified in
16
+ // §30 (https://www.w3.org/TR/WebCryptoAPI/#sha)
15
17
package sha
16
18
17
19
import (
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // Package webcrypto implements the WebCrypto API specification (https://www.w3.org/TR/WebCryptoAPI/).
15
16
package webcrypto
16
17
17
18
import (
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // Package webcrypto implements the WebCrypto API specification (https://www.w3.org/TR/WebCryptoAPI/).
15
16
package webcrypto
16
17
17
18
type KeyUsage string
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // Package webcrypto implements the WebCrypto API specification (https://www.w3.org/TR/WebCryptoAPI/).
15
16
package webcrypto
16
17
17
18
import (
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
2
3
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
4
// you may not use this file except in compliance with the License.
12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // Package webcrypto implements the WebCrypto API specification (https://www.w3.org/TR/WebCryptoAPI/).
15
16
package webcrypto
16
17
17
18
type KeyFormat string
Original file line number Diff line number Diff line change
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
2
+
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
1
14
module github.com/armortal/webcrypto-go
2
15
3
- go 1.20
16
+ go 1.22.2
4
17
5
18
require github.com/google/uuid v1.3.0
Original file line number Diff line number Diff line change 12
12
// See the License for the specific language governing permissions and
13
13
// limitations under the License.
14
14
15
+ // Package webcrypto implements the WebCrypto API specification (https://www.w3.org/TR/WebCryptoAPI/).
15
16
package webcrypto
16
17
17
18
// SubtleCrypto interface provides a set of methods for dealing with low-level cryptographic primitives and
Original file line number Diff line number Diff line change 1
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
2
-
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
-
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // Copyright 2023 ARMORTAL TECHNOLOGIES PTY LTD
1
+ // Copyright 2023-2024 ARMORTAL TECHNOLOGIES PTY LTD
16
2
17
3
// Licensed under the Apache License, Version 2.0 (the "License");
18
4
// you may not use this file except in compliance with the License.
26
12
// See the License for the specific language governing permissions and
27
13
// limitations under the License.
28
14
15
+ // Package util contains utility functions.
29
16
package util
30
17
31
18
import (
You can’t perform that action at this time.
0 commit comments