Index
Modules:
ecc
,
sshcompat
.
API symbols
`=destroy`:
ecc: proc `=destroy`(P: var ECPrivateKey)
Curve:
ecc: object Curve
Curve_secp160r1:
ecc: CurveType.Curve_secp160r1
Curve_secp192r1:
ecc: CurveType.Curve_secp192r1
Curve_secp224r1:
ecc: CurveType.Curve_secp224r1
Curve_secp256k1:
ecc: CurveType.Curve_secp256k1
Curve_secp256r1:
ecc: CurveType.Curve_secp256r1
CurveType:
ecc: enum CurveType
ECCError:
ecc: object ECCError
ECDHSharedSecret:
ecc: type ECDHSharedSecret
ecDsaHashAndSign:
ecc: proc ecDsaHashAndSign(P: ECPrivateKey; message: openArray[char]; hasher = Sha_256): ECDSASignature
ecDsaHashAndSshSign:
sshcompat: proc ecDsaHashAndSshSign(Q: ECPrivateKey; message: openArray[char]; namespace: string): string
ecDsaHashAndSshVerify:
sshcompat: proc ecDsaHashAndSshVerify(S: string; message: openArray[char]; P: var ECPublicKey; namespace: var string): bool
ecDsaHashAndVerify:
ecc: proc ecDsaHashAndVerify(P: ECPublicKey; message: openArray[char]; signature: ECDSASignature; hasher = Sha_256): bool
ecDsaSign:
ecc: proc ecDsaSign(P: ECPrivateKey; messageHash: openArray[char]): ECDSASignature
ECDSASignature:
ecc: type ECDSASignature
ecDsaSshSign:
sshcompat: proc ecDsaSshSign(Q: ECPrivateKey; messagehash: ShaDigest_512; namespace: string): string
ecDsaSshVerify:
sshcompat: proc ecDsaSshVerify(S: string; messagehash: ShaDigest_512; P: var ECPublicKey; namespace: var string): bool
ecDsaVerify:
ecc: proc ecDsaVerify(P: ECPublicKey; messageHash: openArray[char]; signature: ECDSASignature): bool
ecHashedSharedSecret:
ecc: proc ecHashedSharedSecret(P: ECPublicKey; Q: ECPrivateKey; nonce: openArray[char] = []; hasher = Sha_256): seq[char]
ecHMACSharedSecret:
ecc: proc ecHMACSharedSecret(P: ECPublicKey; Q: ECPrivateKey; info: openArray[char] = []): ShaDigest_256
ECKeyPair:
ecc: tuple ECKeyPair
ECPrivateKey:
ecc: object ECPrivateKey
ECPublicKey:
ecc: object ECPublicKey
ecSharedSecret:
ecc: proc ecSharedSecret(P: ECPublicKey; Q: ECPrivateKey): ECDHSharedSecret
getCurve:
ecc: proc getCurve(P: ECPrivateKey): Curve
ecc: proc getCurve(P: ECPublicKey): Curve
getCurveSize:
ecc: proc getCurveSize(C: Curve): int
getCurveType:
ecc: proc getCurveType(C: Curve): CurveType
getPrivateKeySize:
ecc: proc getPrivateKeySize(C: Curve): int
getPublicKey:
ecc: proc getPublicKey(P: ECPrivateKey): ECPublicKey
getPublicKeySize:
ecc: proc getPublicKeySize(C: Curve; compressed = false): int
getSharedSecretSize:
ecc: proc getSharedSecretSize(C: Curve): int
getSignatureSize:
ecc: proc getSignatureSize(C: Curve): int
hmacSha256:
ecc: proc hmacSha256(key: openArray[char]; message: openArray[char]): ShaDigest_256
loadPrivateKey:
ecc: proc loadPrivateKey(C: Curve; bytes: openArray[char]): ECPrivateKey
loadPublicKey:
ecc: proc loadPublicKey(C: Curve; bytes: openArray[char]; compressed = false): ECPublicKey
loadSshKeyPair:
sshcompat: proc loadSshKeyPair(K: string): ECKeyPair
loadSshPublicKey:
sshcompat: proc loadSshPublicKey(K: string): ECPublicKey
makeKeyPair:
ecc: proc makeKeyPair(C: Curve): ECKeyPair
newCurve:
ecc: proc newCurve(T: CurveType): Curve
rngFunction:
ecc: type rngFunction
sshFingerPrint:
sshcompat: proc sshFingerPrint(P: ECPublicKey): string
toBytes:
ecc: proc toBytes(P: ECPrivateKey): seq[char]
ecc: proc toBytes(P: ECPublicKey; compressed = false): seq[char]
toBytesSec1:
ecc: proc toBytesSec1(P: ECPublicKey): seq[char]
toSshKey:
sshcompat: proc toSshKey(Q: ECPrivateKey; comment = ""): string
sshcompat: proc toSshKey(P: ECPublicKey; comment = ""): string
useCustomRNG:
ecc: proc useCustomRNG(RNG_func: rngFunction)
useWeakInternalRNG:
ecc: proc useWeakInternalRNG(seed: int64)
zeroSequence:
ecc: proc zeroSequence[T](s: openArray[T])
ecc: proc zeroSequence(s: string)