The RsaHashedKeyGenParams dictionary of the Web Crypto API represents object that should be passed as the algorithm parameter into when generating any RSA-based key pair: that is, when the algorithm identified as any of RSASSA-PKCS1-v1_5, RSA-PSS, or RSA-OAEP.
The RsaHashedKeyGenParams dictionary of the Web Crypto API represents object that should be passed as the algorithm parameter into when generating any RSA-based key pair: that is, when the algorithm identified as any of RSASSA-PKCS1-v1_5, RSA-PSS, or RSA-OAEP.
(hash this)
Property.
A DOMString representing the name of the digest function to You can pass any of SHA-256, SHA-384, or SHA-512 here. Warning: Although you can technically pass SHA-1 as a value this is strongly discouraged as SHA-1 is considered vulnerable.
Property. A DOMString representing the name of the digest function to You can pass any of SHA-256, SHA-384, or SHA-512 here. Warning: Although you can technically pass SHA-1 as a value this is strongly discouraged as SHA-1 is considered vulnerable.
(modulus-length this)
Property.
A Number. The length in bits of the RSA modulus. This should at least 2048: see for example see NIST SP 800-131A Rev. 1. Some are now recommending that it should be 4096.
Property. A Number. The length in bits of the RSA modulus. This should at least 2048: see for example see NIST SP 800-131A Rev. 1. Some are now recommending that it should be 4096.
(name this)
Property.
A DOMString. This should be set to RSASSA-PKCS1-v1_5, RSA-PSS, RSA-OAEP, depending on the algorithm you want to use.
Property. A DOMString. This should be set to RSASSA-PKCS1-v1_5, RSA-PSS, RSA-OAEP, depending on the algorithm you want to use.
(public-exponent this)
Property.
A Uint8Array. The public exponent. Unless you have a good reason use something else, specify 65537 here ([0x01, 0x00, 0x01]).
Property. A Uint8Array. The public exponent. Unless you have a good reason use something else, specify 65537 here ([0x01, 0x00, 0x01]).
(set-hash! this val)
Property.
A DOMString representing the name of the digest function to You can pass any of SHA-256, SHA-384, or SHA-512 here. Warning: Although you can technically pass SHA-1 as a value this is strongly discouraged as SHA-1 is considered vulnerable.
Property. A DOMString representing the name of the digest function to You can pass any of SHA-256, SHA-384, or SHA-512 here. Warning: Although you can technically pass SHA-1 as a value this is strongly discouraged as SHA-1 is considered vulnerable.
(set-modulus-length! this val)
Property.
A Number. The length in bits of the RSA modulus. This should at least 2048: see for example see NIST SP 800-131A Rev. 1. Some are now recommending that it should be 4096.
Property. A Number. The length in bits of the RSA modulus. This should at least 2048: see for example see NIST SP 800-131A Rev. 1. Some are now recommending that it should be 4096.
(set-name! this val)
Property.
A DOMString. This should be set to RSASSA-PKCS1-v1_5, RSA-PSS, RSA-OAEP, depending on the algorithm you want to use.
Property. A DOMString. This should be set to RSASSA-PKCS1-v1_5, RSA-PSS, RSA-OAEP, depending on the algorithm you want to use.
(set-public-exponent! this val)
Property.
A Uint8Array. The public exponent. Unless you have a good reason use something else, specify 65537 here ([0x01, 0x00, 0x01]).
Property. A Uint8Array. The public exponent. Unless you have a good reason use something else, specify 65537 here ([0x01, 0x00, 0x01]).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close