# NSS Crypto Engine

**API Group:** `xmlsec_nss_crypto`

Cryptographic operations provided by the NSS back-end.

Symmetric keys implementation for NSS.

Signatures implementation for NSS.

AES/Camellia Key Transport (RFC 3394) implementation for NSS.

DES Key Transport transforms implementation for NSS.

RSA Key Transport transforms implementation for NSS.

Key agreement transforms implementation for NSS.

KDF (key derivation) transforms implementation for NSS.

HMAC transforms implementation for NSS.

Digests transforms implementation for NSS.

DEREncodedKeyValue processing for NSS.

Crypto key dat and transforms implementation for NSS. Implementation of keys and tranforms for NSS.

Ciphers transforms implementation for NSS.

Ciphers AEAD transforms implementation for NSS.

## Macros

### `XMLSEC_NO_MD5`

*Defined as:* `1`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L32)

MD5 was removed ([https://bugs.gentoo.org/764437](https://bugs.gentoo.org/764437))

XDH support requires public NSS KeyType values for Ed25519/X25519/X448. In particular, ecMontKey used by xmlsec was added in NSS 3.103.

---

### `XMLSEC_NO_XDH`

*Defined as:* `1`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L41)

Defined if XDH key agreement is not supported on this NSS platform.

Defined if XDH key agreement is not supported by NSS on this platform (requires NSS >= 3.103).

---

### `XMLSEC_NO_EDDSA`

*Defined as:* `1`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L52)

Defined if EdDSA signatures are not supported on this NSS platform.

Defined if EdDSA signatures are not supported by NSS on this platform (requires NSS >= 3.99).

---

### `XMLSEC_NO_HKDF`

*Defined as:* `1`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L63)

Defined if HKDF key derivation is not supported on this NSS platform.

Defined if HKDF key derivation is not supported by NSS on this platform (requires PKCS#11 HKDF mechanism support).

---

### `xmlSecNssKeyDataAesId`

*Defined as:* `xmlSecNssKeyDataAesGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L104)

The AES key data klass.

---

### `xmlSecNssTransformAes128CbcId`

*Defined as:* `xmlSecNssTransformAes128CbcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L113)

The AES128 CBC cipher transform klass.

---

### `xmlSecNssTransformAes192CbcId`

*Defined as:* `xmlSecNssTransformAes192CbcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L120)

The AES192 CBC cipher transform klass.

---

### `xmlSecNssTransformAes256CbcId`

*Defined as:* `xmlSecNssTransformAes256CbcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L127)

The AES256 CBC cipher transform klass.

---

### `xmlSecNssTransformAes128GcmId`

*Defined as:* `xmlSecNssTransformAes128GcmGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L135)

The AES128 GCM cipher transform klass.

---

### `xmlSecNssTransformAes192GcmId`

*Defined as:* `xmlSecNssTransformAes192GcmGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L142)

The AES192 GCM cipher transform klass.

---

### `xmlSecNssTransformAes256GcmId`

*Defined as:* `xmlSecNssTransformAes256GcmGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L149)

The AES256 GCM cipher transform klass.

---

### `xmlSecNssTransformKWAes128Id`

*Defined as:* `xmlSecNssTransformKWAes128GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L157)

The AES 128 key wrap transform klass.

---

### `xmlSecNssTransformKWAes192Id`

*Defined as:* `xmlSecNssTransformKWAes192GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L164)

The AES 192 key wrap transform klass.

---

### `xmlSecNssTransformKWAes256Id`

*Defined as:* `xmlSecNssTransformKWAes256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L171)

The AES 256 key wrap transform klass.

---

### `xmlSecNssKeyDataCamelliaId`

*Defined as:* `xmlSecNssKeyDataCamelliaGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L186)

The Camellia key data klass.

---

### `xmlSecNssTransformCamellia128CbcId`

*Defined as:* `xmlSecNssTransformCamellia128CbcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L196)

The Camellia128 CBC cipher transform klass.

---

### `xmlSecNssTransformCamellia192CbcId`

*Defined as:* `xmlSecNssTransformCamellia192CbcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L203)

The Camellia192 CBC cipher transform klass.

---

### `xmlSecNssTransformCamellia256CbcId`

*Defined as:* `xmlSecNssTransformCamellia256CbcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L210)

The Camellia256 CBC cipher transform klass.

---

### `xmlSecNssTransformKWCamellia128Id`

*Defined as:* `xmlSecNssTransformKWCamellia128GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L217)

The Camellia 128 key wrap transform klass.

---

### `xmlSecNssTransformKWCamellia192Id`

*Defined as:* `xmlSecNssTransformKWCamellia192GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L224)

The Camellia 192 key wrap transform klass.

---

### `xmlSecNssTransformKWCamellia256Id`

*Defined as:* `xmlSecNssTransformKWCamellia256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L231)

The Camellia 256 key wrap transform klass.

---

### `xmlSecNssKeyDataDesId`

*Defined as:* `xmlSecNssKeyDataDesGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L246)

The DES key data klass.

---

### `xmlSecNssTransformDes3CbcId`

*Defined as:* `xmlSecNssTransformDes3CbcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L256)

The Triple DES CBC cipher transform klass.

---

### `xmlSecNssTransformKWDes3Id`

*Defined as:* `xmlSecNssTransformKWDes3GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L263)

The DES3 KW transform klass.

---

### `xmlSecNssKeyDataChaCha20Id`

*Defined as:* `xmlSecNssKeyDataChaCha20GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L280)

The ChaCha20 key data klass.

---

### `xmlSecNssTransformChaCha20Poly1305Id`

*Defined as:* `xmlSecNssTransformChaCha20Poly1305GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L290)

The ChaCha20-Poly1305 AEAD transform klass.

---

### `xmlSecNssKeyDataDsaId`

*Defined as:* `xmlSecNssKeyDataDsaGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L306)

The DSA key klass.

---

### `xmlSecNssTransformDsaSha1Id`

*Defined as:* `xmlSecNssTransformDsaSha1GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L314)

The DSA SHA1 signature transform klass.

---

### `xmlSecNssTransformDsaSha256Id`

*Defined as:* `xmlSecNssTransformDsaSha256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L323)

The DSA SHA2-256 signature transform klass.

---

### `xmlSecNssKeyDataEcId`

*Defined as:* `xmlSecNsskeyDataEcGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L341)

The EC key klass.

---

### `xmlSecNssTransformEcdhId`

*Defined as:* `xmlSecNssTransformEcdhGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L347)

The ECDH key agreement transform klass.

---

### `xmlSecNssTransformEcdsaSha1Id`

*Defined as:* `xmlSecNssTransformEcdsaSha1GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L355)

The ECDSA SHA1 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha224Id`

*Defined as:* `xmlSecNssTransformEcdsaSha224GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L365)

The ECDSA SHA2-224 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha256Id`

*Defined as:* `xmlSecNssTransformEcdsaSha256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L375)

The ECDSA SHA2-256 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha384Id`

*Defined as:* `xmlSecNssTransformEcdsaSha384GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L385)

The ECDSA SHA2-384 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha512Id`

*Defined as:* `xmlSecNssTransformEcdsaSha512GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L395)

The ECDSA SHA2-512 signature transform klass.

---

### `xmlSecNssKeyDataHmacId`

*Defined as:* `xmlSecNssKeyDataHmacGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L456)

The HMAC key data klass.

---

### `xmlSecNssTransformHmacRipemd160Id`

*Defined as:* `xmlSecNssTransformHmacRipemd160GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L475)

The HMAC with RipeMD160 signature transform klass.

---

### `xmlSecNssTransformHmacSha1Id`

*Defined as:* `xmlSecNssTransformHmacSha1GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L484)

The HMAC with SHA1 signature transform klass.

---

### `xmlSecNssTransformHmacSha224Id`

*Defined as:* `xmlSecNssTransformHmacSha224GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L493)

The HMAC with SHA2-224 signature transform klass.

---

### `xmlSecNssTransformHmacSha256Id`

*Defined as:* `xmlSecNssTransformHmacSha256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L502)

The HMAC with SHA2-256 signature transform klass.

---

### `xmlSecNssTransformHmacSha384Id`

*Defined as:* `xmlSecNssTransformHmacSha384GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L511)

The HMAC with SHA2-384 signature transform klass.

---

### `xmlSecNssTransformHmacSha512Id`

*Defined as:* `xmlSecNssTransformHmacSha512GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L520)

The HMAC with SHA2-512 signature transform klass.

---

### `xmlSecNssKeyDataPbkdf2Id`

*Defined as:* `xmlSecNssKeyDataPbkdf2GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L539)

The PBKDF2 key data klass.

---

### `xmlSecNssTransformPbkdf2Id`

*Defined as:* `xmlSecNssTransformPbkdf2GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L548)

The PBKDF2 key derivation transform klass.

---

### `xmlSecNssKeyDataConcatKdfId`

*Defined as:* `xmlSecNssKeyDataConcatKdfGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L565)

The ConcatKDF key data klass.

---

### `xmlSecNssTransformConcatKdfId`

*Defined as:* `xmlSecNssTransformConcatKdfGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L574)

The ConcatKDF key derivation transform klass.

---

### `xmlSecNssKeyDataRsaId`

*Defined as:* `xmlSecNssKeyDataRsaGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L617)

The RSA key klass.

---

### `xmlSecNssTransformRsaSha1Id`

*Defined as:* `xmlSecNssTransformRsaSha1GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L634)

The RSA-SHA1 signature transform klass.

---

### `xmlSecNssTransformRsaSha224Id`

*Defined as:* `xmlSecNssTransformRsaSha224GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L643)

The RSA-SHA2-224 signature transform klass.

---

### `xmlSecNssTransformRsaSha256Id`

*Defined as:* `xmlSecNssTransformRsaSha256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L652)

The RSA-SHA2-256 signature transform klass.

---

### `xmlSecNssTransformRsaSha384Id`

*Defined as:* `xmlSecNssTransformRsaSha384GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L661)

The RSA-SHA2-384 signature transform klass.

---

### `xmlSecNssTransformRsaSha512Id`

*Defined as:* `xmlSecNssTransformRsaSha512GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L670)

The RSA-SHA2-512 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha1Id`

*Defined as:* `xmlSecNssTransformRsaPssSha1GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L680)

The RSA-PSS-SHA1 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha224Id`

*Defined as:* `xmlSecNssTransformRsaPssSha224GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L689)

The RSA-PSS-SHA2-224 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha256Id`

*Defined as:* `xmlSecNssTransformRsaPssSha256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L698)

The RSA-PSS-SHA2-256 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha384Id`

*Defined as:* `xmlSecNssTransformRsaPssSha384GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L707)

The RSA-PSS-SHA2-384 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha512Id`

*Defined as:* `xmlSecNssTransformRsaPssSha512GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L716)

The RSA-PSS-SHA2-512 signature transform klass.

---

### `xmlSecNssTransformRsaPkcs1Id`

*Defined as:* `xmlSecNssTransformRsaPkcs1GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L725)

The RSA PKCS1 key transport transform klass.

---

### `xmlSecNssTransformRsaOaepId`

*Defined as:* `xmlSecNssTransformRsaOaepGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L734)

The RSA OAEP key transport transform klass (XMLEnc 1.0).

---

### `xmlSecNssTransformRsaOaepEnc11Id`

*Defined as:* `xmlSecNssTransformRsaOaepEnc11GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L741)

The RSA OAEP key transport transform klass (XMLEnc 1.1).

---

### `xmlSecNssTransformSha1Id`

*Defined as:* `xmlSecNssTransformSha1GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L759)

The SHA1 digest transform klass.

---

### `xmlSecNssTransformSha224Id`

*Defined as:* `xmlSecNssTransformSha224GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L773)

The SHA2-224 digest transform klass.

---

### `xmlSecNssTransformSha256Id`

*Defined as:* `xmlSecNssTransformSha256GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L787)

The SHA2-256 digest transform klass.

---

### `xmlSecNssTransformSha384Id`

*Defined as:* `xmlSecNssTransformSha384GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L801)

The SHA2-384 digest transform klass.

---

### `xmlSecNssTransformSha512Id`

*Defined as:* `xmlSecNssTransformSha512GetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L815)

The SHA2-512 digest transform klass.

---

### `xmlSecNssKeyDataDEREncodedKeyValueId`

*Defined as:* `xmlSecNssKeyDataDEREncodedKeyValueGetKlass()`

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L844)

The Nss DEREncodedKeyValue data klass.

---

## Functions

### `xmlSecCryptoGetFunctions_nss`

```c
xmlSecCryptoDLFunctionsPtr xmlSecCryptoGetFunctions_nss(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L71)

Gets the pointer to xmlsec-nss functions table.

**Returns:** the xmlsec-nss functions table or NULL if an error occurs.

---

### `xmlSecNssInit`

```c
int xmlSecNssInit(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L78)

Initializes the NSS crypto engine.

XMLSec library specific crypto engine initialization. 

**Returns:** 0 on success or a negative value otherwise.

---

### `xmlSecNssShutdown`

```c
int xmlSecNssShutdown(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L79)

XMLSec library specific crypto engine shutdown.

**Returns:** 0 on success or a negative value otherwise.

---

### `xmlSecNssKeysMngrInit`

```c
int xmlSecNssKeysMngrInit(xmlSecKeysMngrPtr mngr);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L81)

Adds NSS specific key data stores in keys manager.

**Parameters:**

- `mngr` — the pointer to keys manager.


**Returns:** 0 on success or a negative value otherwise.

---

### `xmlSecNssGenerateRandom`

```c
int xmlSecNssGenerateRandom(xmlSecBufferPtr buffer, xmlSecSize size);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L82)

Generates random bytes into `buffer`.

Generates `size` random bytes and puts result in `buffer`. 

**Parameters:**

- `buffer` — the destination buffer.
- `size` — the numer of bytes to generate.


**Returns:** 0 on success or a negative value otherwise.

---

### `xmlSecNssErrorsDefaultCallback`

```c
void xmlSecNssErrorsDefaultCallback(const char *file, int line, const char *func, const char *errorObject, const char *errorSubject, int reason, const char *msg);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L85)

The errors reporting callback function. Just a pass through to the default callback.

**Parameters:**

- `file` — the error location file name (**FILE** macro).
- `line` — the error location line number (**LINE** macro).
- `func` — the error location function name (**FUNCTION** macro).
- `errorObject` — the error specific error object
- `errorSubject` — the error specific error subject.
- `reason` — the error code.
- `msg` — the additional error message.

---

### `xmlSecNssGetInternalKeySlot`

```c
PK11SlotInfo * xmlSecNssGetInternalKeySlot(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L93)

Gets internal NSS key slot.

**Returns:** internal key slot and initializes it if needed.

---

### `xmlSecNssKeyDataAesGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataAesGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L106)

The AES key data klass.

**Returns:** AES key data klass.

---

### `xmlSecNssKeyDataAesSet`

```c
int xmlSecNssKeyDataAesSet(xmlSecKeyDataPtr data, const xmlSecByte *buf, xmlSecSize bufSize);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L107)

Sets the value of AES key data.

**Parameters:**

- `data` — the pointer to AES key data.
- `buf` — the pointer to key value.
- `bufSize` — the key value size (in bytes).


**Returns:** 0 on success or a negative value if an error occurs.

---

### `xmlSecNssTransformAes128CbcGetKlass`

```c
xmlSecTransformId xmlSecNssTransformAes128CbcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L115)

AES 128 CBC encryption transform klass.

**Returns:** pointer to AES 128 CBC encryption transform.

---

### `xmlSecNssTransformAes192CbcGetKlass`

```c
xmlSecTransformId xmlSecNssTransformAes192CbcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L122)

AES 192 CBC encryption transform klass.

**Returns:** pointer to AES 192 CBC encryption transform.

---

### `xmlSecNssTransformAes256CbcGetKlass`

```c
xmlSecTransformId xmlSecNssTransformAes256CbcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L129)

AES 256 CBC encryption transform klass.

**Returns:** pointer to AES 256 CBC encryption transform.

---

### `xmlSecNssTransformAes128GcmGetKlass`

```c
xmlSecTransformId xmlSecNssTransformAes128GcmGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L137)

AES 128 GCM encryption transform klass.

**Returns:** pointer to AES 128 GCM encryption transform.

---

### `xmlSecNssTransformAes192GcmGetKlass`

```c
xmlSecTransformId xmlSecNssTransformAes192GcmGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L144)

AES 192 GCM encryption transform klass.

**Returns:** pointer to AES 192 GCM encryption transform.

---

### `xmlSecNssTransformAes256GcmGetKlass`

```c
xmlSecTransformId xmlSecNssTransformAes256GcmGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L151)

AES 256 GCM encryption transform klass.

**Returns:** pointer to AES 256 GCM encryption transform.

---

### `xmlSecNssTransformKWAes128GetKlass`

```c
xmlSecTransformId xmlSecNssTransformKWAes128GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L159)

The AES-128 key wrapper transform klass.

**Returns:** AES-128 key wrapper transform klass.

---

### `xmlSecNssTransformKWAes192GetKlass`

```c
xmlSecTransformId xmlSecNssTransformKWAes192GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L166)

The AES-192 key wrapper transform klass.

**Returns:** AES-192 key wrapper transform klass.

---

### `xmlSecNssTransformKWAes256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformKWAes256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L173)

The AES-256 key wrapper transform klass.

**Returns:** AES-256 key wrapper transform klass.

---

### `xmlSecNssKeyDataCamelliaGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataCamelliaGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L188)

The Camellia key data klass.

**Returns:** Camellia key data klass.

---

### `xmlSecNssKeyDataCamelliaSet`

```c
int xmlSecNssKeyDataCamelliaSet(xmlSecKeyDataPtr data, const xmlSecByte *buf, xmlSecSize bufSize);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L189)

Sets the value of Camellia key data.

**Parameters:**

- `data` — the pointer to Camellia key data.
- `buf` — the pointer to key value.
- `bufSize` — the key value size (in bytes).


**Returns:** 0 on success or a negative value if an error occurs.

---

### `xmlSecNssTransformCamellia128CbcGetKlass`

```c
xmlSecTransformId xmlSecNssTransformCamellia128CbcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L198)

Camellia 128 CBC encryption transform klass.

**Returns:** pointer to Camellia 128 CBC encryption transform.

---

### `xmlSecNssTransformCamellia192CbcGetKlass`

```c
xmlSecTransformId xmlSecNssTransformCamellia192CbcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L205)

Camellia 192 CBC encryption transform klass.

**Returns:** pointer to Camellia 192 CBC encryption transform.

---

### `xmlSecNssTransformCamellia256CbcGetKlass`

```c
xmlSecTransformId xmlSecNssTransformCamellia256CbcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L212)

Camellia 256 CBC encryption transform klass.

**Returns:** pointer to Camellia 256 CBC encryption transform.

---

### `xmlSecNssTransformKWCamellia128GetKlass`

```c
xmlSecTransformId xmlSecNssTransformKWCamellia128GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L219)

The Camellia-128 key wrapper transform klass.

**Returns:** Camellia-128 key wrapper transform klass.

---

### `xmlSecNssTransformKWCamellia192GetKlass`

```c
xmlSecTransformId xmlSecNssTransformKWCamellia192GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L226)

The Camellia-192 key wrapper transform klass.

**Returns:** Camellia-192 key wrapper transform klass.

---

### `xmlSecNssTransformKWCamellia256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformKWCamellia256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L233)

The Camellia-256 key wrapper transform klass.

**Returns:** Camellia-256 key wrapper transform klass.

---

### `xmlSecNssKeyDataDesGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataDesGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L248)

The DES key data klass.

**Returns:** DES key data klass.

---

### `xmlSecNssKeyDataDesSet`

```c
int xmlSecNssKeyDataDesSet(xmlSecKeyDataPtr data, const xmlSecByte *buf, xmlSecSize bufSize);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L249)

Sets the value of DES key data.

**Parameters:**

- `data` — the pointer to DES key data.
- `buf` — the pointer to key value.
- `bufSize` — the key value size (in bytes).


**Returns:** 0 on success or a negative value if an error occurs.

---

### `xmlSecNssTransformDes3CbcGetKlass`

```c
xmlSecTransformId xmlSecNssTransformDes3CbcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L258)

Triple DES CBC encryption transform klass.

**Returns:** pointer to Triple DES encryption transform.

---

### `xmlSecNssTransformKWDes3GetKlass`

```c
xmlSecTransformId xmlSecNssTransformKWDes3GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L265)

The Triple DES key wrapper transform klass.

**Returns:** Triple DES key wrapper transform klass.

---

### `xmlSecNssKeyDataChaCha20GetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataChaCha20GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L282)

The ChaCha20 key data klass.

**Returns:** ChaCha20 key data klass.

---

### `xmlSecNssKeyDataChaCha20Set`

```c
int xmlSecNssKeyDataChaCha20Set(xmlSecKeyDataPtr data, const xmlSecByte *buf, xmlSecSize bufSize);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L283)

Sets the value of ChaCha20 key data.

**Parameters:**

- `data` — the pointer to ChaCha20 key data.
- `buf` — the pointer to key value.
- `bufSize` — the key value size (in bytes).


**Returns:** 0 on success or a negative value if an error occurs.

---

### `xmlSecNssTransformChaCha20Poly1305GetKlass`

```c
xmlSecTransformId xmlSecNssTransformChaCha20Poly1305GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L292)

ChaCha20-Poly1305 AEAD encryption transform klass.

**Returns:** pointer to ChaCha20-Poly1305 encryption transform.

---

### `xmlSecNssKeyDataDsaGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataDsaGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L308)

The DSA key data klass.

**Returns:** pointer to DSA key data klass.

---

### `xmlSecNssTransformDsaSha1GetKlass`

```c
xmlSecTransformId xmlSecNssTransformDsaSha1GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L316)

The DSA-SHA1 signature transform klass.

**Returns:** DSA-SHA1 signature transform klass.

---

### `xmlSecNssTransformDsaSha256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformDsaSha256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L325)

The DSA-SHA2-256 signature transform klass.

**Returns:** DSA-SHA2-256 signature transform klass.

---

### `xmlSecNsskeyDataEcGetKlass`

```c
xmlSecKeyDataId xmlSecNsskeyDataEcGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L342)

The EC key data klass.

**Returns:** pointer to EC key data klass.

---

### `xmlSecNssTransformEcdhGetKlass`

```c
xmlSecTransformId xmlSecNssTransformEcdhGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L348)

The ECDH key agreement transform klass.

**Returns:** the ECDH key agreement transform klass.

---

### `xmlSecNssTransformEcdsaSha1GetKlass`

```c
xmlSecTransformId xmlSecNssTransformEcdsaSha1GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L356)

The ECDSA-SHA1 signature transform klass.

**Returns:** ECDSA-SHA1 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha224GetKlass`

```c
xmlSecTransformId xmlSecNssTransformEcdsaSha224GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L366)

The ECDSA-SHA2-224 signature transform klass.

**Returns:** ECDSA-SHA2-224 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformEcdsaSha256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L376)

The ECDSA-SHA2-256 signature transform klass.

**Returns:** ECDSA-SHA2-256 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha384GetKlass`

```c
xmlSecTransformId xmlSecNssTransformEcdsaSha384GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L386)

The ECDSA-SHA2-384 signature transform klass.

**Returns:** ECDSA-SHA2-384 signature transform klass.

---

### `xmlSecNssTransformEcdsaSha512GetKlass`

```c
xmlSecTransformId xmlSecNssTransformEcdsaSha512GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L396)

The ECDSA-SHA2-512 signature transform klass.

**Returns:** ECDSA-SHA2-512 signature transform klass.

---

### `xmlSecNssKeyDataHmacGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataHmacGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L458)

The HMAC key data klass.

**Returns:** HMAC key data klass.

---

### `xmlSecNssKeyDataHmacSet`

```c
int xmlSecNssKeyDataHmacSet(xmlSecKeyDataPtr data, const xmlSecByte *buf, xmlSecSize bufSize);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L459)

Sets the value of HMAC key data.

**Parameters:**

- `data` — the pointer to HMAC key data.
- `buf` — the pointer to key value.
- `bufSize` — the key value size (in bytes).


**Returns:** 0 on success or a negative value if an error occurs.

---

### `xmlSecNssTransformHmacRipemd160GetKlass`

```c
xmlSecTransformId xmlSecNssTransformHmacRipemd160GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L477)

The HMAC-RIPEMD160 transform klass.

**Returns:** the HMAC-RIPEMD160 transform klass.

---

### `xmlSecNssTransformHmacSha1GetKlass`

```c
xmlSecTransformId xmlSecNssTransformHmacSha1GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L486)

The HMAC-SHA1 transform klass.

**Returns:** the HMAC-SHA1 transform klass.

---

### `xmlSecNssTransformHmacSha224GetKlass`

```c
xmlSecTransformId xmlSecNssTransformHmacSha224GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L495)

The HMAC-SHA224 transform klass.

**Returns:** the HMAC-SHA224 transform klass.

---

### `xmlSecNssTransformHmacSha256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformHmacSha256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L504)

The HMAC-SHA256 transform klass.

**Returns:** the HMAC-SHA256 transform klass.

---

### `xmlSecNssTransformHmacSha384GetKlass`

```c
xmlSecTransformId xmlSecNssTransformHmacSha384GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L513)

The HMAC-SHA384 transform klass.

**Returns:** the HMAC-SHA384 transform klass.

---

### `xmlSecNssTransformHmacSha512GetKlass`

```c
xmlSecTransformId xmlSecNssTransformHmacSha512GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L522)

The HMAC-SHA512 transform klass.

**Returns:** the HMAC-SHA512 transform klass.

---

### `xmlSecNssKeyDataPbkdf2GetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataPbkdf2GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L541)

The PBKDF2 key data klass.

**Returns:** PBKDF2 key data klass.

---

### `xmlSecNssKeyDataPbkdf2Set`

```c
int xmlSecNssKeyDataPbkdf2Set(xmlSecKeyDataPtr data, const xmlSecByte *buf, xmlSecSize bufSize);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L542)

Sets the value of PBKDF2 key data.

**Parameters:**

- `data` — the pointer to PBKDF2 key data.
- `buf` — the pointer to key value.
- `bufSize` — the key value size (in bytes).


**Returns:** 0 on success or a negative value if an error occurs.

---

### `xmlSecNssTransformPbkdf2GetKlass`

```c
xmlSecTransformId xmlSecNssTransformPbkdf2GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L551)

The PBKDF2 key derivation transform klass.

**Returns:** the PBKDF2 transform klass.


**Returns:** the PBKDF2 key derivation transform klass.

---

### `xmlSecNssKeyDataConcatKdfGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataConcatKdfGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L567)

The ConcatKDF key data klass.

**Returns:** ConcatKDF key data klass.

---

### `xmlSecNssKeyDataConcatKdfSet`

```c
int xmlSecNssKeyDataConcatKdfSet(xmlSecKeyDataPtr data, const xmlSecByte *buf, xmlSecSize bufSize);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L568)

Sets the value of ConcatKDF key data.

**Parameters:**

- `data` — the pointer to ConcatKDF key data.
- `buf` — the pointer to key value.
- `bufSize` — the key value size (in bytes).


**Returns:** 0 on success or a negative value if an error occurs.

---

### `xmlSecNssTransformConcatKdfGetKlass`

```c
xmlSecTransformId xmlSecNssTransformConcatKdfGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L577)

The ConcatKDF key derivation transform klass.

**Returns:** the ConcatKDF transform klass.


**Returns:** the ConcatKDF key derivation transform klass.

---

### `xmlSecNssKeyDataRsaGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataRsaGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L619)

The RSA key data klass.

**Returns:** pointer to RSA key data klass.

---

### `xmlSecNssTransformRsaSha1GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaSha1GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L636)

The RSA-SHA1 signature transform klass.

**Returns:** RSA-SHA1 signature transform klass.

---

### `xmlSecNssTransformRsaSha224GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaSha224GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L645)

The RSA-SHA2-224 signature transform klass.

**Returns:** RSA-SHA2-224 signature transform klass.

---

### `xmlSecNssTransformRsaSha256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaSha256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L654)

The RSA-SHA2-256 signature transform klass.

**Returns:** RSA-SHA2-256 signature transform klass.

---

### `xmlSecNssTransformRsaSha384GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaSha384GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L663)

The RSA-SHA2-384 signature transform klass.

**Returns:** RSA-SHA2-384 signature transform klass.

---

### `xmlSecNssTransformRsaSha512GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaSha512GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L672)

The RSA-SHA2-512 signature transform klass.

**Returns:** RSA-SHA2-512 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha1GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaPssSha1GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L682)

The RSA-PSS-SHA1 signature transform klass.

**Returns:** RSA-PSS-SHA1 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha224GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaPssSha224GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L691)

The RSA-PSS-SHA2-224 signature transform klass.

**Returns:** RSA-PSS-SHA2-224 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaPssSha256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L700)

The RSA-PSS-SHA2-256 signature transform klass.

**Returns:** RSA-PSS-SHA2-256 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha384GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaPssSha384GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L709)

The RSA-PSS-SHA2-384 signature transform klass.

**Returns:** RSA-PSS-SHA2-384 signature transform klass.

---

### `xmlSecNssTransformRsaPssSha512GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaPssSha512GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L718)

The RSA-PSS-SHA2-512 signature transform klass.

**Returns:** RSA-PSS-SHA2-512 signature transform klass.

---

### `xmlSecNssTransformRsaPkcs1GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaPkcs1GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L727)

The RSA-PKCS1 key transport transform klass.

**Returns:** RSA-PKCS1 key transport transform klass.

---

### `xmlSecNssTransformRsaOaepGetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaOaepGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L736)

RSA-PKCS1 key transport klass for XMLEnc 1.0.

The RSA-PKCS1 key transport transform klass (XMLEnc 1.0). 

**Returns:** RSA-PKCS1 key transport transform klass.

---

### `xmlSecNssTransformRsaOaepEnc11GetKlass`

```c
xmlSecTransformId xmlSecNssTransformRsaOaepEnc11GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L743)

RSA-PKCS1 key transport klass for XMLEnc 1.1.

The RSA-PKCS1 key transport transform klass (XMLEnc 1.1). 

**Returns:** RSA-PKCS1 key transport transform klass.

---

### `xmlSecNssTransformSha1GetKlass`

```c
xmlSecTransformId xmlSecNssTransformSha1GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L761)

SHA-1 digest transform klass.

**Returns:** pointer to SHA-1 digest transform klass.

---

### `xmlSecNssTransformSha224GetKlass`

```c
xmlSecTransformId xmlSecNssTransformSha224GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L775)

SHA2-224 digest transform klass.

**Returns:** pointer to SHA2-224 digest transform klass.

---

### `xmlSecNssTransformSha256GetKlass`

```c
xmlSecTransformId xmlSecNssTransformSha256GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L789)

SHA2-256 digest transform klass.

**Returns:** pointer to SHA2-256 digest transform klass.

---

### `xmlSecNssTransformSha384GetKlass`

```c
xmlSecTransformId xmlSecNssTransformSha384GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L803)

SHA2-384 digest transform klass.

**Returns:** pointer to SHA2-384 digest transform klass.

---

### `xmlSecNssTransformSha512GetKlass`

```c
xmlSecTransformId xmlSecNssTransformSha512GetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L817)

SHA2-512 digest transform klass.

**Returns:** pointer to SHA2-512 digest transform klass.

---

### `xmlSecNssKeyDataDEREncodedKeyValueGetKlass`

```c
xmlSecKeyDataId xmlSecNssKeyDataDEREncodedKeyValueGetKlass(void);
```

*Source:* [include/xmlsec/nss/crypto.h](https://github.com/lsh123/xmlsec/blob/1.3.11/include/xmlsec/nss/crypto.h#L845)

The public key algorithm and value are DER-encoded in accordance with the value that would be used in the Subject Public Key Info field of an X.509 certificate, per section 4.1.2.7 of [RFC5280]. The DER-encoded value is then base64-encoded.

[https://www.w3.org/TR/xmldsig-core1/#sec-DEREncodedKeyValue](https://www.w3.org/TR/xmldsig-core1/#sec-DEREncodedKeyValue)

```c
<!--targetNamespace="http://www.w3.org/2009/xmldsig11#"-->
<elementname="DEREncodedKeyValue"type="dsig11:DEREncodedKeyValueType"/>
<complexTypename="DEREncodedKeyValueType">
<simpleContent>
<extensionbase="base64Binary">
<attributename=&quot;Id&quot;type="ID"use="optional"/>
</extension>
</simpleContent>
</complexType>
```

**Returns:** the <dsig11:DEREncodedKeyValue/>element processing key data klass.

---
