@reallyme/crypto 0.4.7 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -661,6 +661,12 @@ export declare enum SecretMaterialOperation {
661
661
  * @generated from enum value: SECRET_MATERIAL_OPERATION_HASH = 300;
662
662
  */
663
663
  HASH = 300,
664
+ /**
665
+ * SHAKE expansion with caller-controlled output width.
666
+ *
667
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_SHAKE_EXPAND = 310;
668
+ */
669
+ SHAKE_EXPAND = 310,
664
670
  /**
665
671
  * Message authentication tag generation.
666
672
  *
@@ -898,7 +904,25 @@ export declare enum RngOutputKind {
898
904
  *
899
905
  * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SHA2_128S_SEED = 1110;
900
906
  */
901
- SLH_DSA_SHA2_128S_SEED = 1110
907
+ SLH_DSA_SHA2_128S_SEED = 1110,
908
+ /**
909
+ * One 16-byte SLH-DSA key-generation seed component.
910
+ *
911
+ * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SEED_16 = 1111;
912
+ */
913
+ SLH_DSA_SEED_16 = 1111,
914
+ /**
915
+ * One 24-byte SLH-DSA key-generation seed component.
916
+ *
917
+ * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SEED_24 = 1112;
918
+ */
919
+ SLH_DSA_SEED_24 = 1112,
920
+ /**
921
+ * One 32-byte SLH-DSA key-generation seed component.
922
+ *
923
+ * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SEED_32 = 1113;
924
+ */
925
+ SLH_DSA_SEED_32 = 1113
902
926
  }
903
927
  /**
904
928
  * Describes the enum reallyme.crypto.v1.RngOutputKind.
@@ -5,7 +5,7 @@ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
5
  /**
6
6
  * Describes the file reallyme/crypto/v1/policy.proto.
7
7
  */
8
- export const file_reallyme_crypto_v1_policy = /*@__PURE__*/ fileDesc("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U5EX0FSR09OMl9TQUxUXzE2EKwCEiMKHlJOR19PVVRQVVRfS0lORF9BUkdPTjJfU0FMVF8zMhC2AhIkCh9STkdfT1VUUFVUX0tJTkRfQUVTXzI1Nl9HQ01fS0VZEJADEiUKIFJOR19PVVRQVVRfS0lORF9NTF9LRU1fMTAyNF9TRUVEEOgHEiMKHlJOR19PVVRQVVRfS0lORF9NTF9EU0FfODdfU0VFRBDMCBIhChxSTkdfT1VUUFVUX0tJTkRfRUQyNTUxOV9TRUVEEPQDEisKJlJOR19PVVRQVVRfS0lORF9TTEhfRFNBX1NIQTJfMTI4U19TRUVEENYIEiQKH1JOR19PVVRQVVRfS0lORF9TTEhfRFNBX1NFRURfMTYQ1wgSJAofUk5HX09VVFBVVF9LSU5EX1NMSF9EU0FfU0VFRF8yNBDYCBIkCh9STkdfT1VUUFVUX0tJTkRfU0xIX0RTQV9TRUVEXzMyENkIKs0CChRQbGF0Zm9ybUtleU9wZXJhdGlvbhImCiJQTEFURk9STV9LRVlfT1BFUkFUSU9OX1VOU1BFQ0lGSUVEEAASIwofUExBVEZPUk1fS0VZX09QRVJBVElPTl9HRU5FUkFURRBkEikKJVBMQVRGT1JNX0tFWV9PUEVSQVRJT05fR0VUX1BVQkxJQ19LRVkQbhIgChtQTEFURk9STV9LRVlfT1BFUkFUSU9OX1NJR04QyAESIgodUExBVEZPUk1fS0VZX09QRVJBVElPTl9WRVJJRlkQ0gESMAorUExBVEZPUk1fS0VZX09QRVJBVElPTl9ERVJJVkVfU0hBUkVEX1NFQ1JFVBCsAhIhCh1QTEFURk9STV9LRVlfT1BFUkFUSU9OX0RFTEVURRB4EiIKHVBMQVRGT1JNX0tFWV9PUEVSQVRJT05fQVRURVNUEJADQicKE21lLnJlYWxseS5jcnlwdG8udjFQAboCDVJlYWxseU1lUHJvdG9iBnByb3RvMw");
9
9
  /**
10
10
  * Describes the message reallyme.crypto.v1.MaterialPolicy.
11
11
  * Use `create(MaterialPolicySchema)` to create a new message.
@@ -620,6 +620,12 @@ export var SecretMaterialOperation;
620
620
  * @generated from enum value: SECRET_MATERIAL_OPERATION_HASH = 300;
621
621
  */
622
622
  SecretMaterialOperation[SecretMaterialOperation["HASH"] = 300] = "HASH";
623
+ /**
624
+ * SHAKE expansion with caller-controlled output width.
625
+ *
626
+ * @generated from enum value: SECRET_MATERIAL_OPERATION_SHAKE_EXPAND = 310;
627
+ */
628
+ SecretMaterialOperation[SecretMaterialOperation["SHAKE_EXPAND"] = 310] = "SHAKE_EXPAND";
623
629
  /**
624
630
  * Message authentication tag generation.
625
631
  *
@@ -859,6 +865,24 @@ export var RngOutputKind;
859
865
  * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SHA2_128S_SEED = 1110;
860
866
  */
861
867
  RngOutputKind[RngOutputKind["SLH_DSA_SHA2_128S_SEED"] = 1110] = "SLH_DSA_SHA2_128S_SEED";
868
+ /**
869
+ * One 16-byte SLH-DSA key-generation seed component.
870
+ *
871
+ * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SEED_16 = 1111;
872
+ */
873
+ RngOutputKind[RngOutputKind["SLH_DSA_SEED_16"] = 1111] = "SLH_DSA_SEED_16";
874
+ /**
875
+ * One 24-byte SLH-DSA key-generation seed component.
876
+ *
877
+ * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SEED_24 = 1112;
878
+ */
879
+ RngOutputKind[RngOutputKind["SLH_DSA_SEED_24"] = 1112] = "SLH_DSA_SEED_24";
880
+ /**
881
+ * One 32-byte SLH-DSA key-generation seed component.
882
+ *
883
+ * @generated from enum value: RNG_OUTPUT_KIND_SLH_DSA_SEED_32 = 1113;
884
+ */
885
+ RngOutputKind[RngOutputKind["SLH_DSA_SEED_32"] = 1113] = "SLH_DSA_SEED_32";
862
886
  })(RngOutputKind || (RngOutputKind = {}));
863
887
  /**
864
888
  * Describes the enum reallyme.crypto.v1.RngOutputKind.
package/dist/proto.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export { AeadAlgorithm, AeadAlgorithmSchema, CryptoAlgorithmFamily, CryptoAlgorithmFamilySchema, CryptoAlgorithmIdentifierSchema, CryptoAeadOpenRequestSchema, CryptoAeadOpenResultSchema, CryptoAeadSealRequestSchema, CryptoAeadSealResultSchema, CryptoBackendErrorSchema, CryptoBip340SchnorrSignRequestSchema, CryptoErrorSchema, CryptoErrorReason, CryptoErrorReasonSchema, CryptoHashRequestSchema, CryptoHashResultSchema, CryptoHkdfDeriveRequestSchema, CryptoHkdfDeriveResultSchema, CryptoHpkeOpenRequestSchema, CryptoHpkeOpenResultSchema, CryptoHpkeSealRequestSchema, CryptoHpkeSealedMessageSchema, CryptoJwaConcatKdfSha256DeriveRequestSchema, CryptoJwaConcatKdfSha256DeriveResultSchema, CryptoKdfDeriveKeyRequestSchema, CryptoKdfDeriveKeyResultSchema, CryptoKemEncapsulationSchema, CryptoKemDecapsulateRequestSchema, CryptoKemDecapsulateResultSchema, CryptoKemEncapsulateRequestSchema, CryptoKemDeriveKeyPairRequestSchema, CryptoKemGenerateKeyPairRequestSchema, CryptoKeyAgreementDeriveKeyPairRequestSchema, CryptoKeyAgreementDeriveSharedSecretRequestSchema, CryptoKeyAgreementDeriveSharedSecretResultSchema, CryptoKeyPairSchema, CryptoKeyUnwrapRequestSchema, CryptoKeyUnwrapResultSchema, CryptoKeyWrapRequestSchema, CryptoKeyWrapResultSchema, CryptoMacAuthenticateRequestSchema, CryptoMacAuthenticateResultSchema, CryptoMacVerifyRequestSchema, CryptoOperationRequestSchema, CryptoOperationResponseSchema, CryptoOperationResultSchema, CryptoPrimitiveErrorSchema, CryptoProviderErrorSchema, CryptoProviderCapabilitySchema, CryptoProviderCapabilitySetSchema, CryptoProviderSupportStatus, CryptoProviderSupportStatusSchema, CryptoRsaVerifyRequestSchema, CryptoSignatureDeriveKeyPairRequestSchema, CryptoSignatureGenerateKeyPairRequestSchema, CryptoSignatureSignRequestSchema, CryptoSignatureSignResultSchema, CryptoSignatureVerifyRequestSchema, CryptoVerificationResultSchema, CryptoVerificationStatus, CryptoVerificationStatusSchema, HashAlgorithm, HashAlgorithmSchema, HpkeAeadId, HpkeAeadIdSchema, HpkeKdfId, HpkeKdfIdSchema, HpkeKemId, HpkeKemIdSchema, HpkeSuiteIdentifierSchema, JsonWebKeySchema, JsonWebKeySetSchema, KdfAlgorithm, KdfAlgorithmSchema, KemAlgorithm, KemAlgorithmSchema, KeyAgreementAlgorithm, KeyAgreementAlgorithmSchema, KeyWrapAlgorithm, KeyWrapAlgorithmSchema, MacAlgorithm, MacAlgorithmSchema, MulticodecKeyAlgorithm, MulticodecKeyAlgorithmSchema, SignatureAlgorithm, SignatureAlgorithmSchema, file_reallyme_crypto_v1_crypto, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
2
- export type { CryptoAlgorithmIdentifier, CryptoAeadOpenRequest, CryptoAeadOpenResult, CryptoAeadSealRequest, CryptoAeadSealResult, CryptoBackendError, CryptoBip340SchnorrSignRequest, CryptoError, CryptoHashRequest, CryptoHashResult, CryptoHkdfDeriveRequest, CryptoHkdfDeriveResult, CryptoHpkeOpenRequest, CryptoHpkeOpenResult, CryptoHpkeSealRequest, CryptoHpkeSealedMessage, CryptoJwaConcatKdfSha256DeriveRequest, CryptoJwaConcatKdfSha256DeriveResult, CryptoKdfDeriveKeyRequest, CryptoKdfDeriveKeyResult, CryptoKemEncapsulation, CryptoKemDecapsulateRequest, CryptoKemDecapsulateResult, CryptoKemEncapsulateRequest, CryptoKemDeriveKeyPairRequest, CryptoKemGenerateKeyPairRequest, CryptoKeyAgreementDeriveKeyPairRequest, CryptoKeyAgreementDeriveSharedSecretRequest, CryptoKeyAgreementDeriveSharedSecretResult, CryptoKeyPair, CryptoKeyUnwrapRequest, CryptoKeyUnwrapResult, CryptoKeyWrapRequest, CryptoKeyWrapResult, CryptoMacAuthenticateRequest, CryptoMacAuthenticateResult, CryptoMacVerifyRequest, CryptoOperationRequest, CryptoOperationResponse, CryptoOperationResult, CryptoPrimitiveError, CryptoProviderCapability, CryptoProviderCapabilitySet, CryptoProviderError, CryptoRsaVerifyRequest, CryptoSignatureDeriveKeyPairRequest, CryptoSignatureGenerateKeyPairRequest, CryptoSignatureSignRequest, CryptoSignatureSignResult, CryptoSignatureVerifyRequest, CryptoVerificationResult, HpkeSuiteIdentifier, JsonWebKey, JsonWebKeySet, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
1
+ export { AeadAlgorithm, AeadAlgorithmSchema, CryptoAlgorithmFamily, CryptoAlgorithmFamilySchema, CryptoAlgorithmIdentifierSchema, CryptoAeadOpenRequestSchema, CryptoAeadOpenResultSchema, CryptoAeadSealRequestSchema, CryptoAeadSealResultSchema, CryptoBackendErrorSchema, CryptoBip340SchnorrSignRequestSchema, CryptoErrorSchema, CryptoErrorReason, CryptoErrorReasonSchema, CryptoHashRequestSchema, CryptoHashResultSchema, CryptoHkdfDeriveRequestSchema, CryptoHkdfDeriveResultSchema, CryptoHpkeOpenRequestSchema, CryptoHpkeOpenResultSchema, CryptoHpkeSealRequestSchema, CryptoHpkeSealedMessageSchema, CryptoJwaConcatKdfSha256DeriveRequestSchema, CryptoJwaConcatKdfSha256DeriveResultSchema, CryptoKdfDeriveKeyRequestSchema, CryptoKdfDeriveKeyResultSchema, CryptoKemEncapsulationSchema, CryptoKemDecapsulateRequestSchema, CryptoKemDecapsulateResultSchema, CryptoKemEncapsulateRequestSchema, CryptoKemDeriveKeyPairRequestSchema, CryptoKemGenerateKeyPairRequestSchema, CryptoKeyAgreementDeriveKeyPairRequestSchema, CryptoKeyAgreementDeriveSharedSecretRequestSchema, CryptoKeyAgreementDeriveSharedSecretResultSchema, CryptoKeyPairSchema, CryptoKeyUnwrapRequestSchema, CryptoKeyUnwrapResultSchema, CryptoKeyWrapRequestSchema, CryptoKeyWrapResultSchema, CryptoMacAuthenticateRequestSchema, CryptoMacAuthenticateResultSchema, CryptoMacVerifyRequestSchema, CryptoOperationRequestSchema, CryptoOperationResponseSchema, CryptoOperationResultSchema, CryptoPrimitiveErrorSchema, CryptoProviderErrorSchema, CryptoProviderCapabilitySchema, CryptoProviderCapabilitySetSchema, CryptoProviderSupportStatus, CryptoProviderSupportStatusSchema, CryptoRsaVerifyRequestSchema, CryptoShakeExpandRequestSchema, CryptoShakeExpandResultSchema, CryptoSignatureDeriveKeyPairRequestSchema, CryptoSignatureGenerateKeyPairRequestSchema, CryptoSignatureSignRequestSchema, CryptoSignatureSignResultSchema, CryptoSignatureVerifyRequestSchema, CryptoVerificationResultSchema, CryptoVerificationStatus, CryptoVerificationStatusSchema, HashAlgorithm, HashAlgorithmSchema, HpkeAeadId, HpkeAeadIdSchema, HpkeKdfId, HpkeKdfIdSchema, HpkeKemId, HpkeKemIdSchema, HpkeSuiteIdentifierSchema, JsonWebKeySchema, JsonWebKeySetSchema, KdfAlgorithm, KdfAlgorithmSchema, ShakeAlgorithm, ShakeAlgorithmSchema, KemAlgorithm, KemAlgorithmSchema, KeyAgreementAlgorithm, KeyAgreementAlgorithmSchema, KeyWrapAlgorithm, KeyWrapAlgorithmSchema, MacAlgorithm, MacAlgorithmSchema, MulticodecKeyAlgorithm, MulticodecKeyAlgorithmSchema, SignatureAlgorithm, SignatureAlgorithmSchema, file_reallyme_crypto_v1_crypto, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
2
+ export type { CryptoAlgorithmIdentifier, CryptoAeadOpenRequest, CryptoAeadOpenResult, CryptoAeadSealRequest, CryptoAeadSealResult, CryptoBackendError, CryptoBip340SchnorrSignRequest, CryptoError, CryptoHashRequest, CryptoShakeExpandRequest, CryptoShakeExpandResult, CryptoHashResult, CryptoHkdfDeriveRequest, CryptoHkdfDeriveResult, CryptoHpkeOpenRequest, CryptoHpkeOpenResult, CryptoHpkeSealRequest, CryptoHpkeSealedMessage, CryptoJwaConcatKdfSha256DeriveRequest, CryptoJwaConcatKdfSha256DeriveResult, CryptoKdfDeriveKeyRequest, CryptoKdfDeriveKeyResult, CryptoKemEncapsulation, CryptoKemDecapsulateRequest, CryptoKemDecapsulateResult, CryptoKemEncapsulateRequest, CryptoKemDeriveKeyPairRequest, CryptoKemGenerateKeyPairRequest, CryptoKeyAgreementDeriveKeyPairRequest, CryptoKeyAgreementDeriveSharedSecretRequest, CryptoKeyAgreementDeriveSharedSecretResult, CryptoKeyPair, CryptoKeyUnwrapRequest, CryptoKeyUnwrapResult, CryptoKeyWrapRequest, CryptoKeyWrapResult, CryptoMacAuthenticateRequest, CryptoMacAuthenticateResult, CryptoMacVerifyRequest, CryptoOperationRequest, CryptoOperationResponse, CryptoOperationResult, CryptoPrimitiveError, CryptoProviderCapability, CryptoProviderCapabilitySet, CryptoProviderError, CryptoRsaVerifyRequest, CryptoSignatureDeriveKeyPairRequest, CryptoSignatureGenerateKeyPairRequest, CryptoSignatureSignRequest, CryptoSignatureSignResult, CryptoSignatureVerifyRequest, CryptoVerificationResult, HpkeSuiteIdentifier, JsonWebKey, JsonWebKeySet, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
3
3
  export { aeadAlgorithmFromProto, aeadAlgorithmToProto, hashAlgorithmFromProto, hashAlgorithmToProto, hpkeSuiteFromProto, hpkeSuiteToProto, kdfAlgorithmFromProto, kdfAlgorithmToProto, kemAlgorithmFromProto, kemAlgorithmToProto, keyAgreementAlgorithmFromProto, keyAgreementAlgorithmToProto, keyWrapAlgorithmFromProto, keyWrapAlgorithmToProto, macAlgorithmFromProto, macAlgorithmToProto, signatureAlgorithmFromProto, signatureAlgorithmToProto, } from "./protoAlgorithms.js";
4
4
  export { multicodecKeyAlgorithmFromProto, multicodecKeyAlgorithmToProto, } from "./protoIdentifiers.js";
5
5
  export type { ReallyMeMulticodecKeyAlgorithm } from "./protoIdentifiers.js";
package/dist/proto.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
- export { AeadAlgorithm, AeadAlgorithmSchema, CryptoAlgorithmFamily, CryptoAlgorithmFamilySchema, CryptoAlgorithmIdentifierSchema, CryptoAeadOpenRequestSchema, CryptoAeadOpenResultSchema, CryptoAeadSealRequestSchema, CryptoAeadSealResultSchema, CryptoBackendErrorSchema, CryptoBip340SchnorrSignRequestSchema, CryptoErrorSchema, CryptoErrorReason, CryptoErrorReasonSchema, CryptoHashRequestSchema, CryptoHashResultSchema, CryptoHkdfDeriveRequestSchema, CryptoHkdfDeriveResultSchema, CryptoHpkeOpenRequestSchema, CryptoHpkeOpenResultSchema, CryptoHpkeSealRequestSchema, CryptoHpkeSealedMessageSchema, CryptoJwaConcatKdfSha256DeriveRequestSchema, CryptoJwaConcatKdfSha256DeriveResultSchema, CryptoKdfDeriveKeyRequestSchema, CryptoKdfDeriveKeyResultSchema, CryptoKemEncapsulationSchema, CryptoKemDecapsulateRequestSchema, CryptoKemDecapsulateResultSchema, CryptoKemEncapsulateRequestSchema, CryptoKemDeriveKeyPairRequestSchema, CryptoKemGenerateKeyPairRequestSchema, CryptoKeyAgreementDeriveKeyPairRequestSchema, CryptoKeyAgreementDeriveSharedSecretRequestSchema, CryptoKeyAgreementDeriveSharedSecretResultSchema, CryptoKeyPairSchema, CryptoKeyUnwrapRequestSchema, CryptoKeyUnwrapResultSchema, CryptoKeyWrapRequestSchema, CryptoKeyWrapResultSchema, CryptoMacAuthenticateRequestSchema, CryptoMacAuthenticateResultSchema, CryptoMacVerifyRequestSchema, CryptoOperationRequestSchema, CryptoOperationResponseSchema, CryptoOperationResultSchema, CryptoPrimitiveErrorSchema, CryptoProviderErrorSchema, CryptoProviderCapabilitySchema, CryptoProviderCapabilitySetSchema, CryptoProviderSupportStatus, CryptoProviderSupportStatusSchema, CryptoRsaVerifyRequestSchema, CryptoSignatureDeriveKeyPairRequestSchema, CryptoSignatureGenerateKeyPairRequestSchema, CryptoSignatureSignRequestSchema, CryptoSignatureSignResultSchema, CryptoSignatureVerifyRequestSchema, CryptoVerificationResultSchema, CryptoVerificationStatus, CryptoVerificationStatusSchema, HashAlgorithm, HashAlgorithmSchema, HpkeAeadId, HpkeAeadIdSchema, HpkeKdfId, HpkeKdfIdSchema, HpkeKemId, HpkeKemIdSchema, HpkeSuiteIdentifierSchema, JsonWebKeySchema, JsonWebKeySetSchema, KdfAlgorithm, KdfAlgorithmSchema, KemAlgorithm, KemAlgorithmSchema, KeyAgreementAlgorithm, KeyAgreementAlgorithmSchema, KeyWrapAlgorithm, KeyWrapAlgorithmSchema, MacAlgorithm, MacAlgorithmSchema, MulticodecKeyAlgorithm, MulticodecKeyAlgorithmSchema, SignatureAlgorithm, SignatureAlgorithmSchema, file_reallyme_crypto_v1_crypto, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
4
+ export { AeadAlgorithm, AeadAlgorithmSchema, CryptoAlgorithmFamily, CryptoAlgorithmFamilySchema, CryptoAlgorithmIdentifierSchema, CryptoAeadOpenRequestSchema, CryptoAeadOpenResultSchema, CryptoAeadSealRequestSchema, CryptoAeadSealResultSchema, CryptoBackendErrorSchema, CryptoBip340SchnorrSignRequestSchema, CryptoErrorSchema, CryptoErrorReason, CryptoErrorReasonSchema, CryptoHashRequestSchema, CryptoHashResultSchema, CryptoHkdfDeriveRequestSchema, CryptoHkdfDeriveResultSchema, CryptoHpkeOpenRequestSchema, CryptoHpkeOpenResultSchema, CryptoHpkeSealRequestSchema, CryptoHpkeSealedMessageSchema, CryptoJwaConcatKdfSha256DeriveRequestSchema, CryptoJwaConcatKdfSha256DeriveResultSchema, CryptoKdfDeriveKeyRequestSchema, CryptoKdfDeriveKeyResultSchema, CryptoKemEncapsulationSchema, CryptoKemDecapsulateRequestSchema, CryptoKemDecapsulateResultSchema, CryptoKemEncapsulateRequestSchema, CryptoKemDeriveKeyPairRequestSchema, CryptoKemGenerateKeyPairRequestSchema, CryptoKeyAgreementDeriveKeyPairRequestSchema, CryptoKeyAgreementDeriveSharedSecretRequestSchema, CryptoKeyAgreementDeriveSharedSecretResultSchema, CryptoKeyPairSchema, CryptoKeyUnwrapRequestSchema, CryptoKeyUnwrapResultSchema, CryptoKeyWrapRequestSchema, CryptoKeyWrapResultSchema, CryptoMacAuthenticateRequestSchema, CryptoMacAuthenticateResultSchema, CryptoMacVerifyRequestSchema, CryptoOperationRequestSchema, CryptoOperationResponseSchema, CryptoOperationResultSchema, CryptoPrimitiveErrorSchema, CryptoProviderErrorSchema, CryptoProviderCapabilitySchema, CryptoProviderCapabilitySetSchema, CryptoProviderSupportStatus, CryptoProviderSupportStatusSchema, CryptoRsaVerifyRequestSchema, CryptoShakeExpandRequestSchema, CryptoShakeExpandResultSchema, CryptoSignatureDeriveKeyPairRequestSchema, CryptoSignatureGenerateKeyPairRequestSchema, CryptoSignatureSignRequestSchema, CryptoSignatureSignResultSchema, CryptoSignatureVerifyRequestSchema, CryptoVerificationResultSchema, CryptoVerificationStatus, CryptoVerificationStatusSchema, HashAlgorithm, HashAlgorithmSchema, HpkeAeadId, HpkeAeadIdSchema, HpkeKdfId, HpkeKdfIdSchema, HpkeKemId, HpkeKemIdSchema, HpkeSuiteIdentifierSchema, JsonWebKeySchema, JsonWebKeySetSchema, KdfAlgorithm, KdfAlgorithmSchema, ShakeAlgorithm, ShakeAlgorithmSchema, KemAlgorithm, KemAlgorithmSchema, KeyAgreementAlgorithm, KeyAgreementAlgorithmSchema, KeyWrapAlgorithm, KeyWrapAlgorithmSchema, MacAlgorithm, MacAlgorithmSchema, MulticodecKeyAlgorithm, MulticodecKeyAlgorithmSchema, SignatureAlgorithm, SignatureAlgorithmSchema, file_reallyme_crypto_v1_crypto, } from "./proto/generated/reallyme/crypto/v1/crypto_pb.js";
5
5
  export { aeadAlgorithmFromProto, aeadAlgorithmToProto, hashAlgorithmFromProto, hashAlgorithmToProto, hpkeSuiteFromProto, hpkeSuiteToProto, kdfAlgorithmFromProto, kdfAlgorithmToProto, kemAlgorithmFromProto, kemAlgorithmToProto, keyAgreementAlgorithmFromProto, keyAgreementAlgorithmToProto, keyWrapAlgorithmFromProto, keyWrapAlgorithmToProto, macAlgorithmFromProto, macAlgorithmToProto, signatureAlgorithmFromProto, signatureAlgorithmToProto, } from "./protoAlgorithms.js";
6
6
  export { multicodecKeyAlgorithmFromProto, multicodecKeyAlgorithmToProto, } from "./protoIdentifiers.js";
7
7
  export { cryptoErrorFromProto, cryptoErrorFromProtoBytes, cryptoErrorToProto, cryptoErrorToProtoBytes, cryptoWireErrorFromProto, cryptoWireErrorFromProtoBytes, cryptoWireErrorToFacadeError, cryptoWireErrorToProto, cryptoWireErrorToProtoBytes, cryptoWireErrorTryNew, } from "./protoErrors.js";
@@ -42,6 +42,28 @@ export const signatureAlgorithmFromProto = (value) => {
42
42
  return "ML-DSA-87";
43
43
  case SignatureAlgorithm.SLH_DSA_SHA2_128S:
44
44
  return "SLH-DSA-SHA2-128s";
45
+ case SignatureAlgorithm.SLH_DSA_SHA2_128F:
46
+ return "SLH-DSA-SHA2-128f";
47
+ case SignatureAlgorithm.SLH_DSA_SHA2_192S:
48
+ return "SLH-DSA-SHA2-192s";
49
+ case SignatureAlgorithm.SLH_DSA_SHA2_192F:
50
+ return "SLH-DSA-SHA2-192f";
51
+ case SignatureAlgorithm.SLH_DSA_SHA2_256S:
52
+ return "SLH-DSA-SHA2-256s";
53
+ case SignatureAlgorithm.SLH_DSA_SHA2_256F:
54
+ return "SLH-DSA-SHA2-256f";
55
+ case SignatureAlgorithm.SLH_DSA_SHAKE_128S:
56
+ return "SLH-DSA-SHAKE-128s";
57
+ case SignatureAlgorithm.SLH_DSA_SHAKE_128F:
58
+ return "SLH-DSA-SHAKE-128f";
59
+ case SignatureAlgorithm.SLH_DSA_SHAKE_192S:
60
+ return "SLH-DSA-SHAKE-192s";
61
+ case SignatureAlgorithm.SLH_DSA_SHAKE_192F:
62
+ return "SLH-DSA-SHAKE-192f";
63
+ case SignatureAlgorithm.SLH_DSA_SHAKE_256S:
64
+ return "SLH-DSA-SHAKE-256s";
65
+ case SignatureAlgorithm.SLH_DSA_SHAKE_256F:
66
+ return "SLH-DSA-SHAKE-256f";
45
67
  default:
46
68
  throw new ReallyMeCryptoError("unsupported-algorithm");
47
69
  }
@@ -84,6 +106,28 @@ export const signatureAlgorithmToProto = (value) => {
84
106
  return SignatureAlgorithm.ML_DSA_87;
85
107
  case "SLH-DSA-SHA2-128s":
86
108
  return SignatureAlgorithm.SLH_DSA_SHA2_128S;
109
+ case "SLH-DSA-SHA2-128f":
110
+ return SignatureAlgorithm.SLH_DSA_SHA2_128F;
111
+ case "SLH-DSA-SHA2-192s":
112
+ return SignatureAlgorithm.SLH_DSA_SHA2_192S;
113
+ case "SLH-DSA-SHA2-192f":
114
+ return SignatureAlgorithm.SLH_DSA_SHA2_192F;
115
+ case "SLH-DSA-SHA2-256s":
116
+ return SignatureAlgorithm.SLH_DSA_SHA2_256S;
117
+ case "SLH-DSA-SHA2-256f":
118
+ return SignatureAlgorithm.SLH_DSA_SHA2_256F;
119
+ case "SLH-DSA-SHAKE-128s":
120
+ return SignatureAlgorithm.SLH_DSA_SHAKE_128S;
121
+ case "SLH-DSA-SHAKE-128f":
122
+ return SignatureAlgorithm.SLH_DSA_SHAKE_128F;
123
+ case "SLH-DSA-SHAKE-192s":
124
+ return SignatureAlgorithm.SLH_DSA_SHAKE_192S;
125
+ case "SLH-DSA-SHAKE-192f":
126
+ return SignatureAlgorithm.SLH_DSA_SHAKE_192F;
127
+ case "SLH-DSA-SHAKE-256s":
128
+ return SignatureAlgorithm.SLH_DSA_SHAKE_256S;
129
+ case "SLH-DSA-SHAKE-256f":
130
+ return SignatureAlgorithm.SLH_DSA_SHAKE_256F;
87
131
  }
88
132
  };
89
133
  export const hashAlgorithmFromProto = (value) => {
@@ -238,6 +282,8 @@ export const kdfAlgorithmFromProto = (value) => {
238
282
  return "HKDF-SHA256";
239
283
  case KdfAlgorithm.HKDF_SHA384:
240
284
  return "HKDF-SHA384";
285
+ case KdfAlgorithm.HKDF_SHA512:
286
+ return "HKDF-SHA512";
241
287
  case KdfAlgorithm.KMAC_256:
242
288
  return "KMAC256";
243
289
  case KdfAlgorithm.ARGON2ID:
@@ -258,6 +304,8 @@ export const kdfAlgorithmToProto = (value) => {
258
304
  return KdfAlgorithm.HKDF_SHA256;
259
305
  case "HKDF-SHA384":
260
306
  return KdfAlgorithm.HKDF_SHA384;
307
+ case "HKDF-SHA512":
308
+ return KdfAlgorithm.HKDF_SHA512;
261
309
  case "KMAC256":
262
310
  return KdfAlgorithm.KMAC_256;
263
311
  case "Argon2id":
package/dist/slhDsa.d.ts CHANGED
@@ -9,12 +9,15 @@ export type ReallyMeSlhDsaKeyPair = Readonly<{
9
9
  secretKey: Uint8Array;
10
10
  }>;
11
11
  export declare const ReallyMeSlhDsa: {
12
- readonly generateKeyPair: (algorithm: ReallyMeSignatureAlgorithm) => ReallyMeSlhDsaKeyPair;
13
- readonly generateKeyPairWithProvider: (provider: ReallyMeWasmProvider, algorithm: ReallyMeSignatureAlgorithm) => ReallyMeSlhDsaKeyPair;
14
- readonly sign: (algorithm: ReallyMeSignatureAlgorithm, message: Uint8Array, secretKey: Uint8Array) => Uint8Array;
15
- readonly signWithProvider: (provider: ReallyMeWasmProvider, algorithm: ReallyMeSignatureAlgorithm, message: Uint8Array, secretKey: Uint8Array) => Uint8Array;
16
- readonly verify: (algorithm: ReallyMeSignatureAlgorithm, signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array) => void;
17
- readonly verifyWithProvider: (provider: ReallyMeWasmProvider, algorithm: ReallyMeSignatureAlgorithm, signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array) => void;
12
+ generateKeyPair(algorithm: ReallyMeSignatureAlgorithm): ReallyMeSlhDsaKeyPair;
13
+ generateKeyPairWithProvider(provider: ReallyMeWasmProvider, algorithm: ReallyMeSignatureAlgorithm): ReallyMeSlhDsaKeyPair;
14
+ /** Derives a keypair from the three equal-width FIPS 205 seed components. */
15
+ deriveKeyPair(algorithm: ReallyMeSignatureAlgorithm, skSeed: Uint8Array, skPrf: Uint8Array, pkSeed: Uint8Array): ReallyMeSlhDsaKeyPair;
16
+ deriveKeyPairWithProvider(provider: ReallyMeWasmProvider, algorithm: ReallyMeSignatureAlgorithm, skSeed: Uint8Array, skPrf: Uint8Array, pkSeed: Uint8Array): ReallyMeSlhDsaKeyPair;
17
+ sign(algorithm: ReallyMeSignatureAlgorithm, message: Uint8Array, secretKey: Uint8Array): Uint8Array;
18
+ signWithProvider(provider: ReallyMeWasmProvider, algorithm: ReallyMeSignatureAlgorithm, message: Uint8Array, secretKey: Uint8Array): Uint8Array;
19
+ verify(algorithm: ReallyMeSignatureAlgorithm, signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): void;
20
+ verifyWithProvider(provider: ReallyMeWasmProvider, algorithm: ReallyMeSignatureAlgorithm, signature: Uint8Array, message: Uint8Array, publicKey: Uint8Array): void;
18
21
  };
19
22
  export declare const deriveSlhDsaSha2128sKeypairForTest: (skSeed: Uint8Array, skPrf: Uint8Array, pkSeed: Uint8Array) => ReallyMeSlhDsaKeyPair;
20
23
  export declare const deriveSlhDsaSha2128sKeypairWithProviderForTest: (provider: ReallyMeWasmProvider, skSeed: Uint8Array, skPrf: Uint8Array, pkSeed: Uint8Array) => ReallyMeSlhDsaKeyPair;
package/dist/slhDsa.js CHANGED
@@ -2,88 +2,105 @@
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
4
  import { ReallyMeCryptoError } from "./errors.js";
5
+ import { signatureAlgorithmToProto } from "./protoAlgorithms.js";
5
6
  import { ensureByteArrayAtMost, ensureBytes, ensureIndependentByteArray, MAX_CRYPTO_INPUT_LENGTH, readIndependentByteArrayProperty, } from "./validateBytes.js";
6
7
  import { requireReallyMeWasmProvider, requireTrustedReallyMeWasmProvider } from "./wasmProvider.js";
7
8
  export const SLH_DSA_SHA2_128S_PUBLIC_KEY_LENGTH = 32;
8
9
  export const SLH_DSA_SHA2_128S_SECRET_KEY_LENGTH = 64;
9
10
  export const SLH_DSA_SHA2_128S_SIGNATURE_LENGTH = 7_856;
10
11
  export const SLH_DSA_SHA2_128S_KEYGEN_SEED_LENGTH = 16;
11
- const assertSlhDsa = (algorithm) => {
12
- if (algorithm !== "SLH-DSA-SHA2-128s") {
13
- throw new ReallyMeCryptoError("unsupported-algorithm");
12
+ const sizes = (algorithm) => {
13
+ switch (algorithm) {
14
+ case "SLH-DSA-SHA2-128s":
15
+ case "SLH-DSA-SHAKE-128s":
16
+ return { seed: 16, publicKey: 32, secretKey: 64, signature: 7_856 };
17
+ case "SLH-DSA-SHA2-128f":
18
+ case "SLH-DSA-SHAKE-128f":
19
+ return { seed: 16, publicKey: 32, secretKey: 64, signature: 17_088 };
20
+ case "SLH-DSA-SHA2-192s":
21
+ case "SLH-DSA-SHAKE-192s":
22
+ return { seed: 24, publicKey: 48, secretKey: 96, signature: 16_224 };
23
+ case "SLH-DSA-SHA2-192f":
24
+ case "SLH-DSA-SHAKE-192f":
25
+ return { seed: 24, publicKey: 48, secretKey: 96, signature: 35_664 };
26
+ case "SLH-DSA-SHA2-256s":
27
+ case "SLH-DSA-SHAKE-256s":
28
+ return { seed: 32, publicKey: 64, secretKey: 128, signature: 29_792 };
29
+ case "SLH-DSA-SHA2-256f":
30
+ case "SLH-DSA-SHAKE-256f":
31
+ return { seed: 32, publicKey: 64, secretKey: 128, signature: 49_856 };
32
+ default:
33
+ throw new ReallyMeCryptoError("unsupported-algorithm");
14
34
  }
15
35
  };
16
- const readKeyPair = (value, inputs = []) => {
17
- const publicKey = readIndependentByteArrayProperty(value, "publicKey", SLH_DSA_SHA2_128S_PUBLIC_KEY_LENGTH, inputs);
18
- const secretKey = readIndependentByteArrayProperty(value, "secretKey", SLH_DSA_SHA2_128S_SECRET_KEY_LENGTH, [...inputs, publicKey]);
36
+ const readKeyPair = (value, widths, inputs = []) => {
37
+ const publicKey = readIndependentByteArrayProperty(value, "publicKey", widths.publicKey, inputs);
38
+ const secretKey = readIndependentByteArrayProperty(value, "secretKey", widths.secretKey, [...inputs, publicKey]);
19
39
  return { publicKey, secretKey };
20
40
  };
21
- const readSignature = (value, inputs) => {
22
- if (!(value instanceof Uint8Array)) {
41
+ const readSignature = (value, length, inputs) => {
42
+ if (!(value instanceof Uint8Array) || value.length !== length) {
23
43
  throw new ReallyMeCryptoError("provider-failure");
24
44
  }
25
- // Signature bytes are public, but their shape and ownership are provider
26
- // postconditions rather than caller validation failures.
27
45
  ensureIndependentByteArray(value, inputs);
28
- if (value.length !== SLH_DSA_SHA2_128S_SIGNATURE_LENGTH) {
29
- throw new ReallyMeCryptoError("provider-failure");
30
- }
31
46
  return value;
32
47
  };
33
- const readVoid = (value) => {
34
- if (value !== undefined) {
35
- throw new ReallyMeCryptoError("provider-failure");
36
- }
37
- };
38
48
  export const ReallyMeSlhDsa = {
39
49
  generateKeyPair(algorithm) {
40
- assertSlhDsa(algorithm);
41
- return readKeyPair(requireReallyMeWasmProvider().slhDsaSha2128sGenerateKeypair());
50
+ return ReallyMeSlhDsa.generateKeyPairWithProvider(requireReallyMeWasmProvider(), algorithm);
42
51
  },
43
52
  generateKeyPairWithProvider(provider, algorithm) {
44
53
  requireTrustedReallyMeWasmProvider(provider);
45
- assertSlhDsa(algorithm);
46
- return readKeyPair(provider.slhDsaSha2128sGenerateKeypair());
54
+ const widths = sizes(algorithm);
55
+ const result = algorithm === "SLH-DSA-SHA2-128s"
56
+ ? provider.slhDsaSha2128sGenerateKeypair()
57
+ : provider.slhDsaGenerateKeypair(signatureAlgorithmToProto(algorithm));
58
+ return readKeyPair(result, widths);
59
+ },
60
+ /** Derives a keypair from the three equal-width FIPS 205 seed components. */
61
+ deriveKeyPair(algorithm, skSeed, skPrf, pkSeed) {
62
+ return ReallyMeSlhDsa.deriveKeyPairWithProvider(requireReallyMeWasmProvider(), algorithm, skSeed, skPrf, pkSeed);
63
+ },
64
+ deriveKeyPairWithProvider(provider, algorithm, skSeed, skPrf, pkSeed) {
65
+ requireTrustedReallyMeWasmProvider(provider);
66
+ const widths = sizes(algorithm);
67
+ ensureBytes(skSeed, widths.seed);
68
+ ensureBytes(skPrf, widths.seed);
69
+ ensureBytes(pkSeed, widths.seed);
70
+ const result = algorithm === "SLH-DSA-SHA2-128s"
71
+ ? provider.slhDsaSha2128sDeriveKeypair(skSeed, skPrf, pkSeed)
72
+ : provider.slhDsaDeriveKeypair(signatureAlgorithmToProto(algorithm), skSeed, skPrf, pkSeed);
73
+ return readKeyPair(result, widths, [skSeed, skPrf, pkSeed]);
47
74
  },
48
75
  sign(algorithm, message, secretKey) {
49
- assertSlhDsa(algorithm);
50
- ensureByteArrayAtMost(message, MAX_CRYPTO_INPUT_LENGTH);
51
- ensureBytes(secretKey, SLH_DSA_SHA2_128S_SECRET_KEY_LENGTH);
52
- return readSignature(requireReallyMeWasmProvider().slhDsaSha2128sSign(secretKey, message), [secretKey, message]);
76
+ return ReallyMeSlhDsa.signWithProvider(requireReallyMeWasmProvider(), algorithm, message, secretKey);
53
77
  },
54
78
  signWithProvider(provider, algorithm, message, secretKey) {
55
79
  requireTrustedReallyMeWasmProvider(provider);
56
- assertSlhDsa(algorithm);
80
+ const widths = sizes(algorithm);
57
81
  ensureByteArrayAtMost(message, MAX_CRYPTO_INPUT_LENGTH);
58
- ensureBytes(secretKey, SLH_DSA_SHA2_128S_SECRET_KEY_LENGTH);
59
- return readSignature(provider.slhDsaSha2128sSign(secretKey, message), [secretKey, message]);
82
+ ensureBytes(secretKey, widths.secretKey);
83
+ const result = algorithm === "SLH-DSA-SHA2-128s"
84
+ ? provider.slhDsaSha2128sSign(secretKey, message)
85
+ : provider.slhDsaSign(signatureAlgorithmToProto(algorithm), secretKey, message);
86
+ return readSignature(result, widths.signature, [secretKey, message]);
60
87
  },
61
88
  verify(algorithm, signature, message, publicKey) {
62
- assertSlhDsa(algorithm);
63
- ensureByteArrayAtMost(message, MAX_CRYPTO_INPUT_LENGTH);
64
- ensureBytes(publicKey, SLH_DSA_SHA2_128S_PUBLIC_KEY_LENGTH);
65
- ensureBytes(signature, SLH_DSA_SHA2_128S_SIGNATURE_LENGTH);
66
- readVoid(requireReallyMeWasmProvider().slhDsaSha2128sVerify(publicKey, message, signature));
89
+ ReallyMeSlhDsa.verifyWithProvider(requireReallyMeWasmProvider(), algorithm, signature, message, publicKey);
67
90
  },
68
91
  verifyWithProvider(provider, algorithm, signature, message, publicKey) {
69
92
  requireTrustedReallyMeWasmProvider(provider);
70
- assertSlhDsa(algorithm);
93
+ const widths = sizes(algorithm);
94
+ ensureBytes(signature, widths.signature);
95
+ ensureBytes(publicKey, widths.publicKey);
71
96
  ensureByteArrayAtMost(message, MAX_CRYPTO_INPUT_LENGTH);
72
- ensureBytes(publicKey, SLH_DSA_SHA2_128S_PUBLIC_KEY_LENGTH);
73
- ensureBytes(signature, SLH_DSA_SHA2_128S_SIGNATURE_LENGTH);
74
- readVoid(provider.slhDsaSha2128sVerify(publicKey, message, signature));
97
+ const result = algorithm === "SLH-DSA-SHA2-128s"
98
+ ? provider.slhDsaSha2128sVerify(publicKey, message, signature)
99
+ : provider.slhDsaVerify(signatureAlgorithmToProto(algorithm), publicKey, message, signature);
100
+ if (result !== undefined) {
101
+ throw new ReallyMeCryptoError("provider-failure");
102
+ }
75
103
  },
76
104
  };
77
- export const deriveSlhDsaSha2128sKeypairForTest = (skSeed, skPrf, pkSeed) => {
78
- ensureBytes(skSeed, SLH_DSA_SHA2_128S_KEYGEN_SEED_LENGTH);
79
- ensureBytes(skPrf, SLH_DSA_SHA2_128S_KEYGEN_SEED_LENGTH);
80
- ensureBytes(pkSeed, SLH_DSA_SHA2_128S_KEYGEN_SEED_LENGTH);
81
- return readKeyPair(requireReallyMeWasmProvider().slhDsaSha2128sDeriveKeypair(skSeed, skPrf, pkSeed), [skSeed, skPrf, pkSeed]);
82
- };
83
- export const deriveSlhDsaSha2128sKeypairWithProviderForTest = (provider, skSeed, skPrf, pkSeed) => {
84
- requireTrustedReallyMeWasmProvider(provider);
85
- ensureBytes(skSeed, SLH_DSA_SHA2_128S_KEYGEN_SEED_LENGTH);
86
- ensureBytes(skPrf, SLH_DSA_SHA2_128S_KEYGEN_SEED_LENGTH);
87
- ensureBytes(pkSeed, SLH_DSA_SHA2_128S_KEYGEN_SEED_LENGTH);
88
- return readKeyPair(provider.slhDsaSha2128sDeriveKeypair(skSeed, skPrf, pkSeed), [skSeed, skPrf, pkSeed]);
89
- };
105
+ export const deriveSlhDsaSha2128sKeypairForTest = (skSeed, skPrf, pkSeed) => ReallyMeSlhDsa.deriveKeyPair("SLH-DSA-SHA2-128s", skSeed, skPrf, pkSeed);
106
+ export const deriveSlhDsaSha2128sKeypairWithProviderForTest = (provider, skSeed, skPrf, pkSeed) => ReallyMeSlhDsa.deriveKeyPairWithProvider(provider, "SLH-DSA-SHA2-128s", skSeed, skPrf, pkSeed);
@@ -1,4 +1,4 @@
1
- import { processOperationResponse, processOperationResponseJson, aes128GcmSeal, aes128GcmOpen, aes192GcmSeal, aes192GcmOpen, aes256GcmSeal, aes256GcmOpen, aes256GcmSivSeal, aes256GcmSivOpen, chacha20Poly1305Seal, chacha20Poly1305Open, xchacha20Poly1305Seal, xchacha20Poly1305Open, aes128KwWrapKey, aes128KwUnwrapKey, aes192KwWrapKey, aes192KwUnwrapKey, aes256KwWrapKey, aes256KwUnwrapKey, argon2idDeriveKey, kmac256Derive, hpkeSealBase, hpkeOpenBase, mlDsa44GenerateKeypair, mlDsa44DeriveKeypair, mlDsa44Sign, mlDsa44Verify, mlDsa65GenerateKeypair, mlDsa65DeriveKeypair, mlDsa65Sign, mlDsa65Verify, mlDsa87GenerateKeypair, mlDsa87DeriveKeypair, mlDsa87Sign, mlDsa87Verify, mlKem512GenerateKeypair, mlKem512DeriveKeypair, mlKem512Encapsulate, mlKem512Decapsulate, mlKem768GenerateKeypair, mlKem768DeriveKeypair, mlKem768Encapsulate, mlKem768Decapsulate, mlKem1024GenerateKeypair, mlKem1024DeriveKeypair, mlKem1024Encapsulate, mlKem1024Decapsulate, slhDsaSha2128sGenerateKeypair, slhDsaSha2128sDeriveKeypair, slhDsaSha2128sSign, slhDsaSha2128sVerify, rsaVerifyPkcs1v15, rsaVerifyPss, xWing768GenerateKeypair, xWing768DeriveKeypair, xWing768Encapsulate, xWing768Decapsulate } from "./wasm/reallyme_crypto_wasm.js";
1
+ import { processOperationResponse, processOperationResponseJson, aes128GcmSeal, aes128GcmOpen, aes192GcmSeal, aes192GcmOpen, aes256GcmSeal, aes256GcmOpen, aes256GcmSivSeal, aes256GcmSivOpen, chacha20Poly1305Seal, chacha20Poly1305Open, xchacha20Poly1305Seal, xchacha20Poly1305Open, aes128KwWrapKey, aes128KwUnwrapKey, aes192KwWrapKey, aes192KwUnwrapKey, aes256KwWrapKey, aes256KwUnwrapKey, argon2idDeriveKey, kmac256Derive, hpkeSealBase, hpkeOpenBase, mlDsa44GenerateKeypair, mlDsa44DeriveKeypair, mlDsa44Sign, mlDsa44Verify, mlDsa65GenerateKeypair, mlDsa65DeriveKeypair, mlDsa65Sign, mlDsa65Verify, mlDsa87GenerateKeypair, mlDsa87DeriveKeypair, mlDsa87Sign, mlDsa87Verify, mlKem512GenerateKeypair, mlKem512DeriveKeypair, mlKem512Encapsulate, mlKem512Decapsulate, mlKem768GenerateKeypair, mlKem768DeriveKeypair, mlKem768Encapsulate, mlKem768Decapsulate, mlKem1024GenerateKeypair, mlKem1024DeriveKeypair, mlKem1024Encapsulate, mlKem1024Decapsulate, slhDsaGenerateKeypair, slhDsaDeriveKeypair, slhDsaSign, slhDsaVerify, slhDsaSha2128sGenerateKeypair, slhDsaSha2128sDeriveKeypair, slhDsaSha2128sSign, slhDsaSha2128sVerify, rsaVerifyPkcs1v15, rsaVerifyPss, xWing768GenerateKeypair, xWing768DeriveKeypair, xWing768Encapsulate, xWing768Decapsulate } from "./wasm/reallyme_crypto_wasm.js";
2
2
  export declare const bundledWasmFunctions: Readonly<{
3
3
  processOperationResponse: typeof processOperationResponse;
4
4
  processOperationResponseJson: typeof processOperationResponseJson;
@@ -48,6 +48,10 @@ export declare const bundledWasmFunctions: Readonly<{
48
48
  mlKem1024DeriveKeypair: typeof mlKem1024DeriveKeypair;
49
49
  mlKem1024Encapsulate: typeof mlKem1024Encapsulate;
50
50
  mlKem1024Decapsulate: typeof mlKem1024Decapsulate;
51
+ slhDsaGenerateKeypair: typeof slhDsaGenerateKeypair;
52
+ slhDsaDeriveKeypair: typeof slhDsaDeriveKeypair;
53
+ slhDsaSign: typeof slhDsaSign;
54
+ slhDsaVerify: typeof slhDsaVerify;
51
55
  slhDsaSha2128sGenerateKeypair: typeof slhDsaSha2128sGenerateKeypair;
52
56
  slhDsaSha2128sDeriveKeypair: typeof slhDsaSha2128sDeriveKeypair;
53
57
  slhDsaSha2128sSign: typeof slhDsaSha2128sSign;
@@ -1,7 +1,7 @@
1
1
  // SPDX-FileCopyrightText: 2026 ReallyMe Technologies Limited
2
2
  //
3
3
  // SPDX-License-Identifier: MIT OR Apache-2.0
4
- import { processOperationResponse, processOperationResponseJson, aes128GcmSeal, aes128GcmOpen, aes192GcmSeal, aes192GcmOpen, aes256GcmSeal, aes256GcmOpen, aes256GcmSivSeal, aes256GcmSivOpen, chacha20Poly1305Seal, chacha20Poly1305Open, xchacha20Poly1305Seal, xchacha20Poly1305Open, aes128KwWrapKey, aes128KwUnwrapKey, aes192KwWrapKey, aes192KwUnwrapKey, aes256KwWrapKey, aes256KwUnwrapKey, argon2idDeriveKey, kmac256Derive, hpkeSealBase, hpkeOpenBase, mlDsa44GenerateKeypair, mlDsa44DeriveKeypair, mlDsa44Sign, mlDsa44Verify, mlDsa65GenerateKeypair, mlDsa65DeriveKeypair, mlDsa65Sign, mlDsa65Verify, mlDsa87GenerateKeypair, mlDsa87DeriveKeypair, mlDsa87Sign, mlDsa87Verify, mlKem512GenerateKeypair, mlKem512DeriveKeypair, mlKem512Encapsulate, mlKem512Decapsulate, mlKem768GenerateKeypair, mlKem768DeriveKeypair, mlKem768Encapsulate, mlKem768Decapsulate, mlKem1024GenerateKeypair, mlKem1024DeriveKeypair, mlKem1024Encapsulate, mlKem1024Decapsulate, slhDsaSha2128sGenerateKeypair, slhDsaSha2128sDeriveKeypair, slhDsaSha2128sSign, slhDsaSha2128sVerify, rsaVerifyPkcs1v15, rsaVerifyPss, xWing768GenerateKeypair, xWing768DeriveKeypair, xWing768Encapsulate, xWing768Decapsulate, } from "./wasm/reallyme_crypto_wasm.js";
4
+ import { processOperationResponse, processOperationResponseJson, aes128GcmSeal, aes128GcmOpen, aes192GcmSeal, aes192GcmOpen, aes256GcmSeal, aes256GcmOpen, aes256GcmSivSeal, aes256GcmSivOpen, chacha20Poly1305Seal, chacha20Poly1305Open, xchacha20Poly1305Seal, xchacha20Poly1305Open, aes128KwWrapKey, aes128KwUnwrapKey, aes192KwWrapKey, aes192KwUnwrapKey, aes256KwWrapKey, aes256KwUnwrapKey, argon2idDeriveKey, kmac256Derive, hpkeSealBase, hpkeOpenBase, mlDsa44GenerateKeypair, mlDsa44DeriveKeypair, mlDsa44Sign, mlDsa44Verify, mlDsa65GenerateKeypair, mlDsa65DeriveKeypair, mlDsa65Sign, mlDsa65Verify, mlDsa87GenerateKeypair, mlDsa87DeriveKeypair, mlDsa87Sign, mlDsa87Verify, mlKem512GenerateKeypair, mlKem512DeriveKeypair, mlKem512Encapsulate, mlKem512Decapsulate, mlKem768GenerateKeypair, mlKem768DeriveKeypair, mlKem768Encapsulate, mlKem768Decapsulate, mlKem1024GenerateKeypair, mlKem1024DeriveKeypair, mlKem1024Encapsulate, mlKem1024Decapsulate, slhDsaGenerateKeypair, slhDsaDeriveKeypair, slhDsaSign, slhDsaVerify, slhDsaSha2128sGenerateKeypair, slhDsaSha2128sDeriveKeypair, slhDsaSha2128sSign, slhDsaSha2128sVerify, rsaVerifyPkcs1v15, rsaVerifyPss, xWing768GenerateKeypair, xWing768DeriveKeypair, xWing768Encapsulate, xWing768Decapsulate, } from "./wasm/reallyme_crypto_wasm.js";
5
5
  export const bundledWasmFunctions = Object.freeze({
6
6
  processOperationResponse,
7
7
  processOperationResponseJson,
@@ -51,6 +51,10 @@ export const bundledWasmFunctions = Object.freeze({
51
51
  mlKem1024DeriveKeypair,
52
52
  mlKem1024Encapsulate,
53
53
  mlKem1024Decapsulate,
54
+ slhDsaGenerateKeypair,
55
+ slhDsaDeriveKeypair,
56
+ slhDsaSign,
57
+ slhDsaVerify,
54
58
  slhDsaSha2128sGenerateKeypair,
55
59
  slhDsaSha2128sDeriveKeypair,
56
60
  slhDsaSha2128sSign,
@@ -242,25 +242,45 @@ export function rsaVerifyPkcs1v15(public_key_der: Uint8Array, public_key_encodin
242
242
  export function rsaVerifyPss(public_key_der: Uint8Array, public_key_encoding: number, message_hash_suite: number, mgf1_hash_suite: number, salt_len: number, message: Uint8Array, signature: Uint8Array): void;
243
243
 
244
244
  /**
245
- * Derive an SLH-DSA-SHA2-128s keypair from the three FIPS 205 seeds.
245
+ * Derive a keypair from three FIPS 205 seeds using the selected protobuf SLH-DSA signature identifier.
246
+ */
247
+ export function slhDsaDeriveKeypair(suite: any, sk_seed: Uint8Array, sk_prf: Uint8Array, pk_seed: Uint8Array): any;
248
+
249
+ /**
250
+ * Generate a keypair using the selected protobuf SLH-DSA signature identifier.
251
+ */
252
+ export function slhDsaGenerateKeypair(suite: any): any;
253
+
254
+ /**
255
+ * Derive a keypair from three FIPS 205 seeds using SLH-DSA-SHA2-128s.
246
256
  */
247
257
  export function slhDsaSha2128sDeriveKeypair(sk_seed: Uint8Array, sk_prf: Uint8Array, pk_seed: Uint8Array): any;
248
258
 
249
259
  /**
250
- * Generate an SLH-DSA-SHA2-128s keypair.
260
+ * Generate a keypair using SLH-DSA-SHA2-128s.
251
261
  */
252
262
  export function slhDsaSha2128sGenerateKeypair(): any;
253
263
 
254
264
  /**
255
- * Sign a message with SLH-DSA-SHA2-128s.
265
+ * Sign a message using SLH-DSA-SHA2-128s.
256
266
  */
257
267
  export function slhDsaSha2128sSign(secret_key: Uint8Array, message: Uint8Array): Uint8Array;
258
268
 
259
269
  /**
260
- * Verify an SLH-DSA-SHA2-128s detached signature.
270
+ * Verify a detached signature using SLH-DSA-SHA2-128s.
261
271
  */
262
272
  export function slhDsaSha2128sVerify(public_key: Uint8Array, message: Uint8Array, signature: Uint8Array): void;
263
273
 
274
+ /**
275
+ * Sign a message using the selected protobuf SLH-DSA signature identifier.
276
+ */
277
+ export function slhDsaSign(suite: any, secret_key: Uint8Array, message: Uint8Array): Uint8Array;
278
+
279
+ /**
280
+ * Verify a detached signature using the selected protobuf SLH-DSA signature identifier.
281
+ */
282
+ export function slhDsaVerify(suite: any, public_key: Uint8Array, message: Uint8Array, signature: Uint8Array): void;
283
+
264
284
  /**
265
285
  * Decapsulate an X-Wing-768 ciphertext with a 32-byte secret seed.
266
286
  */
@@ -343,10 +363,14 @@ export interface InitOutput {
343
363
  readonly processOperationResponseJson: (a: any) => any;
344
364
  readonly rsaVerifyPkcs1v15: (a: any, b: number, c: number, d: any, e: any) => [number, number];
345
365
  readonly rsaVerifyPss: (a: any, b: number, c: number, d: number, e: number, f: any, g: any) => [number, number];
366
+ readonly slhDsaDeriveKeypair: (a: any, b: any, c: any, d: any) => [number, number, number];
367
+ readonly slhDsaGenerateKeypair: (a: any) => [number, number, number];
346
368
  readonly slhDsaSha2128sDeriveKeypair: (a: any, b: any, c: any) => [number, number, number];
347
369
  readonly slhDsaSha2128sGenerateKeypair: () => [number, number, number];
348
370
  readonly slhDsaSha2128sSign: (a: any, b: any) => [number, number, number];
349
371
  readonly slhDsaSha2128sVerify: (a: any, b: any, c: any) => [number, number];
372
+ readonly slhDsaSign: (a: any, b: any, c: any) => [number, number, number];
373
+ readonly slhDsaVerify: (a: any, b: any, c: any, d: any) => [number, number];
350
374
  readonly xWing768Decapsulate: (a: any, b: any) => [number, number, number];
351
375
  readonly xWing768DeriveKeypair: (a: any) => [number, number, number];
352
376
  readonly xWing768Encapsulate: (a: any) => [number, number, number];