Class ECDSAVariationsAdapter


  • class ECDSAVariationsAdapter
    extends java.lang.Object
    • Field Detail

      • BASE_ALGORITHM_NAME

        private static final java.lang.String BASE_ALGORITHM_NAME
        See Also:
        Constant Field Values
      • log

        private static final org.slf4j.Logger log
      • SUPPORTED_CURVES

        public static final java.util.Map<java.lang.String,​java.lang.String> SUPPORTED_CURVES
      • NIST_CURVES

        public static final java.util.Map<java.lang.String,​ECDSACurve> NIST_CURVES
    • Constructor Detail

      • ECDSAVariationsAdapter

        ECDSAVariationsAdapter()
    • Method Detail

      • readPubKeyFromBuffer

        static java.security.PublicKey readPubKeyFromBuffer​(Buffer<?> buf,
                                                            java.lang.String variation)
                                                     throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • writePubKeyContentsIntoBuffer

        static void writePubKeyContentsIntoBuffer​(java.security.PublicKey pk,
                                                  Buffer<?> buf)
      • isECKeyWithFieldSize

        static boolean isECKeyWithFieldSize​(java.security.Key key,
                                            int fieldSize)
      • fieldSizeFromKey

        private static int fieldSizeFromKey​(java.security.interfaces.ECKey ecPublicKey)