Skip to content

API XMLSec NSS Crypto

Aleksey Sanin edited this page Apr 11, 2026 · 3 revisions

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.

XML Security Library (http://www.aleksey.com/xmlsec).

This is free software; see the Copyright file in the source distribution for precise wording.

Copyright (C) 2002-2026 Aleksey Sanin aleksey@aleksey.com. All Rights Reserved.

XML Security Library (http://www.aleksey.com/xmlsec).

This is free software; see the Copyright file in the source distribution for precise wording.

Copyright (C) 2002-2026 Aleksey Sanin aleksey@aleksey.com. All Rights Reserved. Copyright (c) 2003 America Online, Inc. All rights reserved.

XML Security Library (http://www.aleksey.com/xmlsec).

This is free software; see the Copyright file in the source distribution for precise wording.

Copyright (C) 2003-2026 Aleksey Sanin aleksey@aleksey.com. All Rights Reserved. Copyright (c) 2003 America Online, Inc. All rights reserved.

XML Security Library (http://www.aleksey.com/xmlsec).

This is free software; see the Copyright file in the source distribution for precise wording.

Copyright (c) 2003 America Online, Inc. All rights reserved. Copyright (C) 2002-2026 Aleksey Sanin aleksey@aleksey.com. All Rights Reserved.

Macros

XMLSEC_NO_MD5

Defined as: 1

Source: include/xmlsec/nss/crypto.h

MD5 was removed (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

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

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

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

The AES key data klass.


xmlSecNssTransformAes128CbcId

Defined as: xmlSecNssTransformAes128CbcGetKlass()

Source: include/xmlsec/nss/crypto.h

The AES128 CBC cipher transform klass.


xmlSecNssTransformAes192CbcId

Defined as: xmlSecNssTransformAes192CbcGetKlass()

Source: include/xmlsec/nss/crypto.h

The AES192 CBC cipher transform klass.


xmlSecNssTransformAes256CbcId

Defined as: xmlSecNssTransformAes256CbcGetKlass()

Source: include/xmlsec/nss/crypto.h

The AES256 CBC cipher transform klass.


xmlSecNssTransformAes128GcmId

Defined as: xmlSecNssTransformAes128GcmGetKlass()

Source: include/xmlsec/nss/crypto.h

The AES128 GCM cipher transform klass.


xmlSecNssTransformAes192GcmId

Defined as: xmlSecNssTransformAes192GcmGetKlass()

Source: include/xmlsec/nss/crypto.h

The AES192 GCM cipher transform klass.


xmlSecNssTransformAes256GcmId

Defined as: xmlSecNssTransformAes256GcmGetKlass()

Source: include/xmlsec/nss/crypto.h

The AES256 GCM cipher transform klass.


xmlSecNssTransformKWAes128Id

Defined as: xmlSecNssTransformKWAes128GetKlass()

Source: include/xmlsec/nss/crypto.h

The AES 128 key wrap transform klass.


xmlSecNssTransformKWAes192Id

Defined as: xmlSecNssTransformKWAes192GetKlass()

Source: include/xmlsec/nss/crypto.h

The AES 192 key wrap transform klass.


xmlSecNssTransformKWAes256Id

Defined as: xmlSecNssTransformKWAes256GetKlass()

Source: include/xmlsec/nss/crypto.h

The AES 256 key wrap transform klass.


xmlSecNssKeyDataCamelliaId

Defined as: xmlSecNssKeyDataCamelliaGetKlass()

Source: include/xmlsec/nss/crypto.h

The Camellia key data klass.


xmlSecNssTransformCamellia128CbcId

Defined as: xmlSecNssTransformCamellia128CbcGetKlass()

Source: include/xmlsec/nss/crypto.h

The Camellia128 CBC cipher transform klass.


xmlSecNssTransformCamellia192CbcId

Defined as: xmlSecNssTransformCamellia192CbcGetKlass()

Source: include/xmlsec/nss/crypto.h

The Camellia192 CBC cipher transform klass.


xmlSecNssTransformCamellia256CbcId

Defined as: xmlSecNssTransformCamellia256CbcGetKlass()

Source: include/xmlsec/nss/crypto.h

The Camellia256 CBC cipher transform klass.


xmlSecNssTransformKWCamellia128Id

Defined as: xmlSecNssTransformKWCamellia128GetKlass()

Source: include/xmlsec/nss/crypto.h

The Camellia 128 key wrap transform klass.


xmlSecNssTransformKWCamellia192Id

Defined as: xmlSecNssTransformKWCamellia192GetKlass()

Source: include/xmlsec/nss/crypto.h

The Camellia 192 key wrap transform klass.


xmlSecNssTransformKWCamellia256Id

Defined as: xmlSecNssTransformKWCamellia256GetKlass()

Source: include/xmlsec/nss/crypto.h

The Camellia 256 key wrap transform klass.


xmlSecNssKeyDataDesId

Defined as: xmlSecNssKeyDataDesGetKlass()

Source: include/xmlsec/nss/crypto.h

The DES key data klass.


xmlSecNssTransformDes3CbcId

Defined as: xmlSecNssTransformDes3CbcGetKlass()

Source: include/xmlsec/nss/crypto.h

The Triple DES CBC cipher transform klass.


xmlSecNssTransformKWDes3Id

Defined as: xmlSecNssTransformKWDes3GetKlass()

Source: include/xmlsec/nss/crypto.h

The DES3 KW transform klass.


xmlSecNssKeyDataChaCha20Id

Defined as: xmlSecNssKeyDataChaCha20GetKlass()

Source: include/xmlsec/nss/crypto.h

The ChaCha20 key data klass.


xmlSecNssTransformChaCha20Poly1305Id

Defined as: xmlSecNssTransformChaCha20Poly1305GetKlass()

Source: include/xmlsec/nss/crypto.h

The ChaCha20-Poly1305 AEAD transform klass.


xmlSecNssKeyDataDsaId

Defined as: xmlSecNssKeyDataDsaGetKlass()

Source: include/xmlsec/nss/crypto.h

The DSA key klass.


xmlSecNssTransformDsaSha1Id

Defined as: xmlSecNssTransformDsaSha1GetKlass()

Source: include/xmlsec/nss/crypto.h

The DSA SHA1 signature transform klass.


xmlSecNssTransformDsaSha256Id

Defined as: xmlSecNssTransformDsaSha256GetKlass()

Source: include/xmlsec/nss/crypto.h

The DSA SHA2-256 signature transform klass.


xmlSecNssKeyDataEcId

Defined as: xmlSecNsskeyDataEcGetKlass()

Source: include/xmlsec/nss/crypto.h

The EC key klass.


xmlSecNssTransformEcdhId

Defined as: xmlSecNssTransformEcdhGetKlass()

Source: include/xmlsec/nss/crypto.h

The ECDH key agreement transform klass.


xmlSecNssTransformEcdsaSha1Id

Defined as: xmlSecNssTransformEcdsaSha1GetKlass()

Source: include/xmlsec/nss/crypto.h

The ECDSA SHA1 signature transform klass.


xmlSecNssTransformEcdsaSha224Id

Defined as: xmlSecNssTransformEcdsaSha224GetKlass()

Source: include/xmlsec/nss/crypto.h

The ECDSA SHA2-224 signature transform klass.


xmlSecNssTransformEcdsaSha256Id

Defined as: xmlSecNssTransformEcdsaSha256GetKlass()

Source: include/xmlsec/nss/crypto.h

The ECDSA SHA2-256 signature transform klass.


xmlSecNssTransformEcdsaSha384Id

Defined as: xmlSecNssTransformEcdsaSha384GetKlass()

Source: include/xmlsec/nss/crypto.h

The ECDSA SHA2-384 signature transform klass.


xmlSecNssTransformEcdsaSha512Id

Defined as: xmlSecNssTransformEcdsaSha512GetKlass()

Source: include/xmlsec/nss/crypto.h

The ECDSA SHA2-512 signature transform klass.


xmlSecNssKeyDataHmacId

Defined as: xmlSecNssKeyDataHmacGetKlass()

Source: include/xmlsec/nss/crypto.h

The HMAC key data klass.


xmlSecNssTransformHmacRipemd160Id

Defined as: xmlSecNssTransformHmacRipemd160GetKlass()

Source: include/xmlsec/nss/crypto.h

The HMAC with RipeMD160 signature transform klass.


xmlSecNssTransformHmacSha1Id

Defined as: xmlSecNssTransformHmacSha1GetKlass()

Source: include/xmlsec/nss/crypto.h

The HMAC with SHA1 signature transform klass.


xmlSecNssTransformHmacSha224Id

Defined as: xmlSecNssTransformHmacSha224GetKlass()

Source: include/xmlsec/nss/crypto.h

The HMAC with SHA2-224 signature transform klass.


xmlSecNssTransformHmacSha256Id

Defined as: xmlSecNssTransformHmacSha256GetKlass()

Source: include/xmlsec/nss/crypto.h

The HMAC with SHA2-256 signature transform klass.


xmlSecNssTransformHmacSha384Id

Defined as: xmlSecNssTransformHmacSha384GetKlass()

Source: include/xmlsec/nss/crypto.h

The HMAC with SHA2-384 signature transform klass.


xmlSecNssTransformHmacSha512Id

Defined as: xmlSecNssTransformHmacSha512GetKlass()

Source: include/xmlsec/nss/crypto.h

The HMAC with SHA2-512 signature transform klass.


xmlSecNssKeyDataPbkdf2Id

Defined as: xmlSecNssKeyDataPbkdf2GetKlass()

Source: include/xmlsec/nss/crypto.h

The PBKDF2 key data klass.


xmlSecNssTransformPbkdf2Id

Defined as: xmlSecNssTransformPbkdf2GetKlass()

Source: include/xmlsec/nss/crypto.h

The PBKDF2 key derivation transform klass.


xmlSecNssKeyDataConcatKdfId

Defined as: xmlSecNssKeyDataConcatKdfGetKlass()

Source: include/xmlsec/nss/crypto.h

The ConcatKDF key data klass.


xmlSecNssTransformConcatKdfId

Defined as: xmlSecNssTransformConcatKdfGetKlass()

Source: include/xmlsec/nss/crypto.h

The ConcatKDF key derivation transform klass.


xmlSecNssKeyDataRsaId

Defined as: xmlSecNssKeyDataRsaGetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA key klass.


xmlSecNssTransformRsaSha1Id

Defined as: xmlSecNssTransformRsaSha1GetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA-SHA1 signature transform klass.


xmlSecNssTransformRsaSha224Id

Defined as: xmlSecNssTransformRsaSha224GetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-224 signature transform klass.


xmlSecNssTransformRsaSha256Id

Defined as: xmlSecNssTransformRsaSha256GetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-256 signature transform klass.


xmlSecNssTransformRsaSha384Id

Defined as: xmlSecNssTransformRsaSha384GetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-384 signature transform klass.


xmlSecNssTransformRsaSha512Id

Defined as: xmlSecNssTransformRsaSha512GetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-512 signature transform klass.


xmlSecNssTransformRsaPssSha1Id

Defined as: xmlSecNssTransformRsaPssSha1GetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA-PSS-SHA1 signature transform klass.


xmlSecNssTransformRsaPssSha224Id

Defined as: xmlSecNssTransformRsaPssSha224GetKlass()

Source: include/xmlsec/nss/crypto.h

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


xmlSecNssTransformRsaPssSha256Id

Defined as: xmlSecNssTransformRsaPssSha256GetKlass()

Source: include/xmlsec/nss/crypto.h

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


xmlSecNssTransformRsaPssSha384Id

Defined as: xmlSecNssTransformRsaPssSha384GetKlass()

Source: include/xmlsec/nss/crypto.h

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


xmlSecNssTransformRsaPssSha512Id

Defined as: xmlSecNssTransformRsaPssSha512GetKlass()

Source: include/xmlsec/nss/crypto.h

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


xmlSecNssTransformRsaPkcs1Id

Defined as: xmlSecNssTransformRsaPkcs1GetKlass()

Source: include/xmlsec/nss/crypto.h

The RSA PKCS1 key transport transform klass.


xmlSecNssTransformRsaOaepId

Defined as: xmlSecNssTransformRsaOaepGetKlass()

Source: include/xmlsec/nss/crypto.h

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


xmlSecNssTransformRsaOaepEnc11Id

Defined as: xmlSecNssTransformRsaOaepEnc11GetKlass()

Source: include/xmlsec/nss/crypto.h

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


xmlSecNssTransformSha1Id

Defined as: xmlSecNssTransformSha1GetKlass()

Source: include/xmlsec/nss/crypto.h

The SHA1 digest transform klass.


xmlSecNssTransformSha224Id

Defined as: xmlSecNssTransformSha224GetKlass()

Source: include/xmlsec/nss/crypto.h

The SHA2-224 digest transform klass.


xmlSecNssTransformSha256Id

Defined as: xmlSecNssTransformSha256GetKlass()

Source: include/xmlsec/nss/crypto.h

The SHA2-256 digest transform klass.


xmlSecNssTransformSha384Id

Defined as: xmlSecNssTransformSha384GetKlass()

Source: include/xmlsec/nss/crypto.h

The SHA2-384 digest transform klass.


xmlSecNssTransformSha512Id

Defined as: xmlSecNssTransformSha512GetKlass()

Source: include/xmlsec/nss/crypto.h

The SHA2-512 digest transform klass.


xmlSecNssKeyDataDEREncodedKeyValueId

Defined as: xmlSecNssKeyDataDEREncodedKeyValueGetKlass()

Source: include/xmlsec/nss/crypto.h

The Nss DEREncodedKeyValue data klass.


Functions

xmlSecCryptoGetFunctions_nss

xmlSecCryptoDLFunctionsPtr xmlSecCryptoGetFunctions_nss(void);

Source: include/xmlsec/nss/crypto.h

Gets the pointer to xmlsec-nss functions table.

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


xmlSecNssInit

int xmlSecNssInit(void);

Source: include/xmlsec/nss/crypto.h

Initializes the NSS crypto engine.

XMLSec library specific crypto engine initialization.

Returns: 0 on success or a negative value otherwise.


xmlSecNssShutdown

int xmlSecNssShutdown(void);

Source: include/xmlsec/nss/crypto.h

XMLSec library specific crypto engine shutdown.

Returns: 0 on success or a negative value otherwise.


xmlSecNssKeysMngrInit

int xmlSecNssKeysMngrInit(xmlSecKeysMngrPtr mngr);

Source: include/xmlsec/nss/crypto.h

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

int xmlSecNssGenerateRandom(xmlSecBufferPtr buffer, xmlSecSize size);

Source: include/xmlsec/nss/crypto.h

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

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

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

PK11SlotInfo * xmlSecNssGetInternalKeySlot(void);

Source: include/xmlsec/nss/crypto.h

Gets internal NSS key slot.

Returns: internal key slot and initializes it if needed.


xmlSecNssKeyDataAesGetKlass

xmlSecKeyDataId xmlSecNssKeyDataAesGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The AES key data klass.

Returns: AES key data klass.


xmlSecNssKeyDataAesSet

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

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformAes128CbcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

AES 128 CBC encryption transform klass.

Returns: pointer to AES 128 CBC encryption transform.


xmlSecNssTransformAes192CbcGetKlass

xmlSecTransformId xmlSecNssTransformAes192CbcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

AES 192 CBC encryption transform klass.

Returns: pointer to AES 192 CBC encryption transform.


xmlSecNssTransformAes256CbcGetKlass

xmlSecTransformId xmlSecNssTransformAes256CbcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

AES 256 CBC encryption transform klass.

Returns: pointer to AES 256 CBC encryption transform.


xmlSecNssTransformAes128GcmGetKlass

xmlSecTransformId xmlSecNssTransformAes128GcmGetKlass(void);

Source: include/xmlsec/nss/crypto.h

AES 128 GCM encryption transform klass.

Returns: pointer to AES 128 GCM encryption transform.


xmlSecNssTransformAes192GcmGetKlass

xmlSecTransformId xmlSecNssTransformAes192GcmGetKlass(void);

Source: include/xmlsec/nss/crypto.h

AES 192 GCM encryption transform klass.

Returns: pointer to AES 192 GCM encryption transform.


xmlSecNssTransformAes256GcmGetKlass

xmlSecTransformId xmlSecNssTransformAes256GcmGetKlass(void);

Source: include/xmlsec/nss/crypto.h

AES 256 GCM encryption transform klass.

Returns: pointer to AES 256 GCM encryption transform.


xmlSecNssTransformKWAes128GetKlass

xmlSecTransformId xmlSecNssTransformKWAes128GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The AES-128 key wrapper transform klass.

Returns: AES-128 key wrapper transform klass.


xmlSecNssTransformKWAes192GetKlass

xmlSecTransformId xmlSecNssTransformKWAes192GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The AES-192 key wrapper transform klass.

Returns: AES-192 key wrapper transform klass.


xmlSecNssTransformKWAes256GetKlass

xmlSecTransformId xmlSecNssTransformKWAes256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The AES-256 key wrapper transform klass.

Returns: AES-256 key wrapper transform klass.


xmlSecNssKeyDataCamelliaGetKlass

xmlSecKeyDataId xmlSecNssKeyDataCamelliaGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The Camellia key data klass.

Returns: Camellia key data klass.


xmlSecNssKeyDataCamelliaSet

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

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformCamellia128CbcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

Camellia 128 CBC encryption transform klass.

Returns: pointer to Camellia 128 CBC encryption transform.


xmlSecNssTransformCamellia192CbcGetKlass

xmlSecTransformId xmlSecNssTransformCamellia192CbcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

Camellia 192 CBC encryption transform klass.

Returns: pointer to Camellia 192 CBC encryption transform.


xmlSecNssTransformCamellia256CbcGetKlass

xmlSecTransformId xmlSecNssTransformCamellia256CbcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

Camellia 256 CBC encryption transform klass.

Returns: pointer to Camellia 256 CBC encryption transform.


xmlSecNssTransformKWCamellia128GetKlass

xmlSecTransformId xmlSecNssTransformKWCamellia128GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The Camellia-128 key wrapper transform klass.

Returns: Camellia-128 key wrapper transform klass.


xmlSecNssTransformKWCamellia192GetKlass

xmlSecTransformId xmlSecNssTransformKWCamellia192GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The Camellia-192 key wrapper transform klass.

Returns: Camellia-192 key wrapper transform klass.


xmlSecNssTransformKWCamellia256GetKlass

xmlSecTransformId xmlSecNssTransformKWCamellia256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The Camellia-256 key wrapper transform klass.

Returns: Camellia-256 key wrapper transform klass.


xmlSecNssKeyDataDesGetKlass

xmlSecKeyDataId xmlSecNssKeyDataDesGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The DES key data klass.

Returns: DES key data klass.


xmlSecNssKeyDataDesSet

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

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformDes3CbcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

Triple DES CBC encryption transform klass.

Returns: pointer to Triple DES encryption transform.


xmlSecNssTransformKWDes3GetKlass

xmlSecTransformId xmlSecNssTransformKWDes3GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The Triple DES key wrapper transform klass.

Returns: Triple DES key wrapper transform klass.


xmlSecNssKeyDataChaCha20GetKlass

xmlSecKeyDataId xmlSecNssKeyDataChaCha20GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ChaCha20 key data klass.

Returns: ChaCha20 key data klass.


xmlSecNssKeyDataChaCha20Set

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

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformChaCha20Poly1305GetKlass(void);

Source: include/xmlsec/nss/crypto.h

ChaCha20-Poly1305 AEAD encryption transform klass.

Returns: pointer to ChaCha20-Poly1305 encryption transform.


xmlSecNssKeyDataDsaGetKlass

xmlSecKeyDataId xmlSecNssKeyDataDsaGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The DSA key data klass.

Returns: pointer to DSA key data klass.


xmlSecNssTransformDsaSha1GetKlass

xmlSecTransformId xmlSecNssTransformDsaSha1GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The DSA-SHA1 signature transform klass.

Returns: DSA-SHA1 signature transform klass.


xmlSecNssTransformDsaSha256GetKlass

xmlSecTransformId xmlSecNssTransformDsaSha256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The DSA-SHA2-256 signature transform klass.

Returns: DSA-SHA2-256 signature transform klass.


xmlSecNsskeyDataEcGetKlass

xmlSecKeyDataId xmlSecNsskeyDataEcGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The EC key data klass.

Returns: pointer to EC key data klass.


xmlSecNssTransformEcdhGetKlass

xmlSecTransformId xmlSecNssTransformEcdhGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ECDH key agreement transform klass.

Returns: the ECDH key agreement transform klass.


xmlSecNssTransformEcdsaSha1GetKlass

xmlSecTransformId xmlSecNssTransformEcdsaSha1GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ECDSA-SHA1 signature transform klass.

Returns: ECDSA-SHA1 signature transform klass.


xmlSecNssTransformEcdsaSha224GetKlass

xmlSecTransformId xmlSecNssTransformEcdsaSha224GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ECDSA-SHA2-224 signature transform klass.

Returns: ECDSA-SHA2-224 signature transform klass.


xmlSecNssTransformEcdsaSha256GetKlass

xmlSecTransformId xmlSecNssTransformEcdsaSha256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ECDSA-SHA2-256 signature transform klass.

Returns: ECDSA-SHA2-256 signature transform klass.


xmlSecNssTransformEcdsaSha384GetKlass

xmlSecTransformId xmlSecNssTransformEcdsaSha384GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ECDSA-SHA2-384 signature transform klass.

Returns: ECDSA-SHA2-384 signature transform klass.


xmlSecNssTransformEcdsaSha512GetKlass

xmlSecTransformId xmlSecNssTransformEcdsaSha512GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ECDSA-SHA2-512 signature transform klass.

Returns: ECDSA-SHA2-512 signature transform klass.


xmlSecNssKeyDataHmacGetKlass

xmlSecKeyDataId xmlSecNssKeyDataHmacGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The HMAC key data klass.

Returns: HMAC key data klass.


xmlSecNssKeyDataHmacSet

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

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformHmacRipemd160GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The HMAC-RIPEMD160 transform klass.

Returns: the HMAC-RIPEMD160 transform klass.


xmlSecNssTransformHmacSha1GetKlass

xmlSecTransformId xmlSecNssTransformHmacSha1GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The HMAC-SHA1 transform klass.

Returns: the HMAC-SHA1 transform klass.


xmlSecNssTransformHmacSha224GetKlass

xmlSecTransformId xmlSecNssTransformHmacSha224GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The HMAC-SHA224 transform klass.

Returns: the HMAC-SHA224 transform klass.


xmlSecNssTransformHmacSha256GetKlass

xmlSecTransformId xmlSecNssTransformHmacSha256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The HMAC-SHA256 transform klass.

Returns: the HMAC-SHA256 transform klass.


xmlSecNssTransformHmacSha384GetKlass

xmlSecTransformId xmlSecNssTransformHmacSha384GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The HMAC-SHA384 transform klass.

Returns: the HMAC-SHA384 transform klass.


xmlSecNssTransformHmacSha512GetKlass

xmlSecTransformId xmlSecNssTransformHmacSha512GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The HMAC-SHA512 transform klass.

Returns: the HMAC-SHA512 transform klass.


xmlSecNssKeyDataPbkdf2GetKlass

xmlSecKeyDataId xmlSecNssKeyDataPbkdf2GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The PBKDF2 key data klass.

Returns: PBKDF2 key data klass.


xmlSecNssKeyDataPbkdf2Set

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

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformPbkdf2GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The PBKDF2 key derivation transform klass.

Returns: the PBKDF2 transform klass.

Returns: the PBKDF2 key derivation transform klass.


xmlSecNssKeyDataConcatKdfGetKlass

xmlSecKeyDataId xmlSecNssKeyDataConcatKdfGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ConcatKDF key data klass.

Returns: ConcatKDF key data klass.


xmlSecNssKeyDataConcatKdfSet

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

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformConcatKdfGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The ConcatKDF key derivation transform klass.

Returns: the ConcatKDF transform klass.

Returns: the ConcatKDF key derivation transform klass.


xmlSecNssKeyDataRsaGetKlass

xmlSecKeyDataId xmlSecNssKeyDataRsaGetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA key data klass.

Returns: pointer to RSA key data klass.


xmlSecNssTransformRsaSha1GetKlass

xmlSecTransformId xmlSecNssTransformRsaSha1GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA-SHA1 signature transform klass.

Returns: RSA-SHA1 signature transform klass.


xmlSecNssTransformRsaSha224GetKlass

xmlSecTransformId xmlSecNssTransformRsaSha224GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-224 signature transform klass.

Returns: RSA-SHA2-224 signature transform klass.


xmlSecNssTransformRsaSha256GetKlass

xmlSecTransformId xmlSecNssTransformRsaSha256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-256 signature transform klass.

Returns: RSA-SHA2-256 signature transform klass.


xmlSecNssTransformRsaSha384GetKlass

xmlSecTransformId xmlSecNssTransformRsaSha384GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-384 signature transform klass.

Returns: RSA-SHA2-384 signature transform klass.


xmlSecNssTransformRsaSha512GetKlass

xmlSecTransformId xmlSecNssTransformRsaSha512GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA-SHA2-512 signature transform klass.

Returns: RSA-SHA2-512 signature transform klass.


xmlSecNssTransformRsaPssSha1GetKlass

xmlSecTransformId xmlSecNssTransformRsaPssSha1GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA-PSS-SHA1 signature transform klass.

Returns: RSA-PSS-SHA1 signature transform klass.


xmlSecNssTransformRsaPssSha224GetKlass

xmlSecTransformId xmlSecNssTransformRsaPssSha224GetKlass(void);

Source: include/xmlsec/nss/crypto.h

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

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


xmlSecNssTransformRsaPssSha256GetKlass

xmlSecTransformId xmlSecNssTransformRsaPssSha256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

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

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


xmlSecNssTransformRsaPssSha384GetKlass

xmlSecTransformId xmlSecNssTransformRsaPssSha384GetKlass(void);

Source: include/xmlsec/nss/crypto.h

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

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


xmlSecNssTransformRsaPssSha512GetKlass

xmlSecTransformId xmlSecNssTransformRsaPssSha512GetKlass(void);

Source: include/xmlsec/nss/crypto.h

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

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


xmlSecNssTransformRsaPkcs1GetKlass

xmlSecTransformId xmlSecNssTransformRsaPkcs1GetKlass(void);

Source: include/xmlsec/nss/crypto.h

The RSA-PKCS1 key transport transform klass.

Returns: RSA-PKCS1 key transport transform klass.


xmlSecNssTransformRsaOaepGetKlass

xmlSecTransformId xmlSecNssTransformRsaOaepGetKlass(void);

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformRsaOaepEnc11GetKlass(void);

Source: include/xmlsec/nss/crypto.h

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

xmlSecTransformId xmlSecNssTransformSha1GetKlass(void);

Source: include/xmlsec/nss/crypto.h

SHA-1 digest transform klass.

Returns: pointer to SHA-1 digest transform klass.


xmlSecNssTransformSha224GetKlass

xmlSecTransformId xmlSecNssTransformSha224GetKlass(void);

Source: include/xmlsec/nss/crypto.h

SHA2-224 digest transform klass.

Returns: pointer to SHA2-224 digest transform klass.


xmlSecNssTransformSha256GetKlass

xmlSecTransformId xmlSecNssTransformSha256GetKlass(void);

Source: include/xmlsec/nss/crypto.h

SHA2-256 digest transform klass.

Returns: pointer to SHA2-256 digest transform klass.


xmlSecNssTransformSha384GetKlass

xmlSecTransformId xmlSecNssTransformSha384GetKlass(void);

Source: include/xmlsec/nss/crypto.h

SHA2-384 digest transform klass.

Returns: pointer to SHA2-384 digest transform klass.


xmlSecNssTransformSha512GetKlass

xmlSecTransformId xmlSecNssTransformSha512GetKlass(void);

Source: include/xmlsec/nss/crypto.h

SHA2-512 digest transform klass.

Returns: pointer to SHA2-512 digest transform klass.


xmlSecNssKeyDataDEREncodedKeyValueGetKlass

xmlSecKeyDataId xmlSecNssKeyDataDEREncodedKeyValueGetKlass(void);

Source: include/xmlsec/nss/crypto.h

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

<!--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.


Clone this wiki locally