TlsCrypto
Service and object creation interface for the primitive types and services that are associated with
cryptography in the API.
Return the primary (safest) SecureRandom for this crypto.
Adopt the passed in secret, creating a new copy of it.
Create a TlsCertificate from an ASN.1 binary encoding of an X.509 certificate.
Create a TlsCertificate from an ASN.1 binary encoding of a certificate.
Create a cipher for the specified encryption and MAC algorithms.
Create a domain object supporting the domain parameters described in dhConfig.
Create a domain object supporting the domain parameters described in ecConfig.
Create a suitable hash for the hash algorithm identifier passed in.
Create a suitable HMAC for the MAC algorithm identifier passed in.
Create a suitable HMAC using the hash algorithm identifier passed in.
Create a domain object supporting the domain parameters described in kemConfig.
Create a nonce generator.
Create a TlsSecret object based on provided data.
Create an SRP-6 client.
Create an SRP-6 server.
Create an SRP-6 verifier generator.
Create a TlsSecret object containing a randomly-generated RSA PreMasterSecret
Return true if this TlsCrypto would use a stream verifier for any of the passed in algorithms.
Return true if this TlsCrypto would use a stream verifier for any of the passed in algorithms.
Return true if this TlsCrypto can support the passed in hash algorithm.
Return true if this TlsCrypto can support the passed in signature algorithm (not necessarily in
combination with EVERY hash algorithm).
bool HasDHAgreement()
Return true if this TlsCrypto can support DH key agreement.
bool HasECDHAgreement()
Return true if this TlsCrypto can support ECDH key agreement.
Return true if this TlsCrypto can support the passed in block/stream encryption algorithm.
Return true if this TlsCrypto can support HKDF with the passed in hash algorithm.
bool HasKemAgreement()
Return true if this TlsCrypto can support KEM key agreement.
Return true if this TlsCrypto can support the passed in MAC algorithm.
Return true if this TlsCrypto supports the passed in NamedGroupnamed group
value.
bool HasRsaEncryption()
Return true if this TlsCrypto can support RSA encryption/decryption.
Return true if this TlsCrypto can support the passed in signature algorithm (not necessarily in
combination with EVERY hash algorithm).
Return true if this TlsCrypto can support the passed in signature algorithm.
Return true if this TlsCrypto can support the passed in signature scheme.
bool HasSrpAuthentication()
Return true if this TlsCrypto can support SRP authentication.
Setup an initial "secret" for a chain of HKDF calls (RFC 5869), containing a string of HashLen
zeroes.