Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Fixing a typo in KMS Envelope AEAD.
Browse files Browse the repository at this point in the history
Updating list of primitives supported in each language.

PiperOrigin-RevId: 309317968
  • Loading branch information
thaidn authored and copybara-github committed Apr 30, 2020
1 parent e3c5fd0 commit 5015057
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
31 changes: 21 additions & 10 deletions docs/PRIMITIVES.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ describe the main properties of Tink primitives.

### Primitives supported by language

**Primitive** | **Java** | **C++** | **ObjC** | **Go**
------------------ | -------- | ------- | -------- | ------
AEAD | yes | yes | yes | yes
Streaming AEAD | yes | yes | no | no
Deterministic AEAD | yes | yes | yes | yes
MAC | yes | yes | yes | yes
Digital signatures | yes | yes | yes | yes
Hybrid encryption | yes | yes | yes | yes
**Primitive** | **Java** | **C++** | **ObjC** | **Go** | **Python**
------------------ | -------- | ------- | -------- | ------ | ----------
AEAD | yes | yes | yes | yes | yes
Streaming AEAD | yes | yes | no | yes | no
Deterministic AEAD | yes | yes | yes | yes | yes
MAC | yes | yes | yes | yes | yes
Digital signatures | yes | yes | yes | yes | yes
Hybrid encryption | yes | yes | yes | yes | yes

JavaScript and Python are currently under development.
JavaScript is currently under development.

### Primitive implementations supported by languege

Expand All @@ -54,7 +54,7 @@ Hybrid Encryption | ECIES with AEAD and HKDF

Primitive | C++ Implementations
------------------ | -----------------------------------------------------------------------------
AEAD | AES-GCM, AES-GCM-SIV, AES-CTR-HMAC, AES-EAX, KMS Envelope, XCHACHA20-POLY1305
AEAD | AES-GCM, AES-GCM-SIV, AES-CTR-HMAC, AES-EAX, KMS Envelope, CHACHA20-POLY1305, XCHACHA20-POLY1305
Streaming AEAD | AES-GCM-HKDF-STREAMING, AES-CTR-HMAC-STREAMING
Deterministic AEAD | AES-SIV
MAC | HMAC-SHA2, AES-CMAC
Expand All @@ -76,11 +76,22 @@ Hybrid Encryption | ECIES with AEAD and HKDF
Primitive | Go Implementations
------------------ | ------------------------------------------------------------------------
AEAD | AES-GCM, AES-CTR-HMAC, KMS Envelope, CHACHA20-POLY1305, XCHACHA-POLY1305
Streaming AEAD | AES-GCM-HKDF-STREAMING
Deterministic AEAD | AES-SIV
MAC | HMAC-SHA2, AES-CMAC
Digital Signatures | ECDSA over NIST curves, Ed25519
Hybrid Encryption | ECIES with AEAD and HKDF

#### Python

Primitive | Python Implementations
------------------ | -----------------------------------------------------------------------------
AEAD | AES-GCM, AES-CTR-HMAC, AES-EAX, KMS Envelope, CHACHA20-POLY1305, XCHACHA20-POLY1305
Deterministic AEAD | AES-SIV
MAC | HMAC-SHA2
Digital Signatures | ECDSA over NIST curves, Ed25519, RSA-SSA-PKCS1, RSA-SSA-PSS
Hybrid Encryption | ECIES with AEAD and HKDF

---

## General properties of all primitives
Expand Down
2 changes: 1 addition & 1 deletion python/tink/aead/_kms_envelope_aead.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def decrypt(self, ciphertext: bytes, associated_data: bytes) -> bytes:
dek = tink_pb2.KeyData()
dek.type_url = self.key_template.type_url
dek.value = dek_bytes
dek.key_material_type = tink_pb2.KeyData.KeyMaterialType.SYMMETRIC
dek.key_material_type = tink_pb2.KeyData.SYMMETRIC
dek_aead = core.Registry.primitive(dek, _aead.Aead)

# Extract ciphertext payload and decrypt
Expand Down

0 comments on commit 5015057

Please sign in to comment.