MCPcopy Index your code

hub / github.com/RubyCrypto/ed25519 / functions

Functions276 in github.com/RubyCrypto/ed25519

↓ 2 callersMethodgetI
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Curve.java:58
↓ 2 callersMethodgetName
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSANamedCurveSpec.java:32
↓ 2 callersMethodgetNegativeA
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPublicKey.java:252
↓ 2 callersMethodgetScalarOps
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSAParameterSpec.java:68
↓ 2 callersMethodisNegative
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:41
↓ 2 callersMethodisNonZero
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:39
↓ 2 callersFunctionload_4
ext/ed25519_ref10/fe.c:195
↓ 2 callersMethodmsub
GroupElement subtraction using the twisted Edwards addition law with extended coordinates (Hisil2008). <p> this must be in $P^3$ representation and $q
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:626
↓ 2 callersMethodmultiply
(FieldElement val)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:72
↓ 2 callersFunctionselect
ext/ed25519_ref10/ge.c:313
↓ 2 callersMethodselect
Look up $16^i r_i B$ in the precomputed table. <p> No secret array indices, no secret branching. Constant time. <p> Must have previously precomputed.
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:840
↓ 2 callersFunctionslide
ext/ed25519_ref10/ge.c:13
↓ 2 callersMethodslide
Calculates a sliding-windows base 2 representation for a given value $a$. To learn more about it see [6] page 8. <p> Output: $r$ which satisfies $a =
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:913
↓ 2 callersMethodsquare
$h = f f$ <p> Can overlap $h$ with $f$. <p> Preconditions: </p><ul> <li>$|f|$ bounded by $1.65 2^{26},1.65 2^{25},1.65 2^{26},1.65 2^{25},$ etc. </ul>
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java:408
↓ 2 callersMethodvalidate_key_bytes
Ensure a serialized key meets the requirements
lib/ed25519.rb:40
↓ 1 callersMethodaddOne
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:47
↓ 1 callersMethodbit
Get the i'th bit of a byte array. @param h the byte array. @param i the bit index. @return 0 or 1, the value of the i'th bit in h
ext/ed25519_jruby/net/i2p/crypto/eddsa/Utils.java:67
↓ 1 callersMethodbytesToHex
Converts bytes to a hex string. @param raw the byte[] to be converted. @return the hex representation as a string.
ext/ed25519_jruby/net/i2p/crypto/eddsa/Utils.java:91
↓ 1 callersMethodcreateEd25519Module
(Ruby runtime)
ext/ed25519_jruby/org/cryptorb/Ed25519Provider.java:23
↓ 1 callersMethodcreateNamedCurveSpec
Create an EdDSANamedCurveSpec from the provided curve name. The current implementation fetches the pre-created curve spec from a table. @param curveNa
ext/ed25519_jruby/net/i2p/crypto/eddsa/KeyPairGenerator.java:90
↓ 1 callersMethodcreatePoint
(byte[] P, boolean precompute)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Curve.java:75
↓ 1 callersFunctioncrypto_sign_ed25519_ref10
ext/ed25519_ref10/sign.c:7
↓ 1 callersFunctioncrypto_sign_ed25519_ref10_seed_keypair
ext/ed25519_ref10/keypair.c:6
↓ 1 callersFunctioncrypto_sign_open_ed25519_ref10
ext/ed25519_ref10/open.c:7
↓ 1 callersMethoddecode
Extracts the public key bytes from the provided encoding. <p> This will decode data conforming to the current spec at https://tools.ietf.org/html/draf
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPublicKey.java:163
↓ 1 callersMethoddecode
Extracts the private key bytes from the provided encoding. <p> This will decode data conforming to the current spec at https://tools.ietf.org/html/dra
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPrivateKey.java:195
↓ 1 callersMethoddecode
Decode a FieldElement from its $(b-1)$-bit encoding. The highest bit is masked out. @param in the $(b-1)$-bit encoding of a FieldElement. @return the
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Encoding.java:42
↓ 1 callersMethoddefineCurve
(EdDSANamedCurveSpec curve)
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSANamedCurveTable.java:51
↓ 1 callersMethoddivide
(FieldElement val)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:59
↓ 1 callersMethoddoubleScalarMultiplyVariableTime
$r = a A + b B$ where $a = a[0]+256 a[1]+\dots+256^{31} a[31]$, $b = b[0]+256 b[1]+\dots+256^{31} b[31]$ and $B$ is this point. <p> $A$ must have been
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:960
↓ 1 callersMethodencode
Encode a FieldElement in its $(b-1)$-bit encoding. @param x the FieldElement to encode @return the $(b-1)$-bit encoding of this FieldElement.
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Encoding.java:34
↓ 1 callersMethodencode
Encodes a given field element in its 32 byte representation. This is done in two steps: <ol> <li>Reduce the value of the field element modulo $p$. <li
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/ed25519/Ed25519LittleEndianEncoding.java:78
↓ 1 callersMethodequals
(Object o)
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPublicKey.java:265
↓ 1 callersMethodequals
(Object o)
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPrivateKey.java:328
↓ 1 callersMethodequals
(Object obj)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:732
↓ 1 callersMethodequals
(Object obj)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:119
↓ 1 callersFunctionfe_frombytes
ext/ed25519_ref10/fe.c:209
↓ 1 callersFunctionfe_pow22523
ext/ed25519_ref10/fe.c:596
↓ 1 callersFunctionfe_sq2
ext/ed25519_ref10/fe.c:770
↓ 1 callersFunctionge_double_scalarmult_vartime
ext/ed25519_ref10/ge.c:56
↓ 1 callersFunctionge_frombytes_negate_vartime
ext/ed25519_ref10/ge.c:116
↓ 1 callersFunctionge_msub
ext/ed25519_ref10/ge.c:171
↓ 1 callersFunctionge_p2_0
ext/ed25519_ref10/ge.c:200
↓ 1 callersFunctionge_p3_0
ext/ed25519_ref10/ge.c:217
↓ 1 callersFunctionge_p3_to_p2
ext/ed25519_ref10/ge.c:256
↓ 1 callersFunctionge_precomp_0
ext/ed25519_ref10/ge.c:276
↓ 1 callersFunctionge_sub
ext/ed25519_ref10/ge.c:390
↓ 1 callersFunctionge_tobytes
ext/ed25519_ref10/ge.c:396
↓ 1 callersMethodgetA
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPublicKey.java:248
↓ 1 callersMethodgetA
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSAPublicKeySpec.java:50
↓ 1 callersMethodgetEncoded
Returns the public key in its canonical encoding. <p> This implements the following specs: <ul><li> General encoding: https://tools.ietf.org/html/draf
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPrivateKey.java:137
↓ 1 callersMethodgetParams
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPublicKey.java:243
↓ 1 callersMethodgetQm5d8
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Field.java:79
↓ 1 callersMethodinitialize
(int keysize, SecureRandom random)
ext/ed25519_jruby/net/i2p/crypto/eddsa/KeyPairGenerator.java:46
↓ 1 callersMethodmodPow
(FieldElement e, FieldElement m)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:95
↓ 1 callersMethodmultiplyAndAdd
$r = (a b + c) \bmod l$ @param a a scalar @param b a scalar @param c a scalar @return $(a b + c) \bmod l$
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/ScalarOps.java:33
↓ 1 callersMethodnegate
Negates this group element by subtracting it from the neutral group element. <p> TODO-CR BR: why not simply negate the coordinates $X$ and $T$? @retu
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:721
↓ 1 callersFunctionnegative
ext/ed25519_ref10/ge.c:294
↓ 1 callersMethodnegative
Constant-time determine if byte is negative. @param b the byte to check. @return 1 if the byte is negative, 0 otherwise.
ext/ed25519_jruby/net/i2p/crypto/eddsa/Utils.java:57
↓ 1 callersMethodpow
(FieldElement e)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:99
↓ 1 callersMethodpow22523
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:71
↓ 1 callersFunctionsc_muladd
ext/ed25519_ref10/sc_muladd.c:33
↓ 1 callersMethodself_test
Perform a self-test to ensure the selected provider is working
lib/ed25519.rb:48
↓ 1 callersMethodsetField
(Field f)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Encoding.java:23
↓ 1 callersMethodsetField
(Field f)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerLittleEndianEncoding.java:28
↓ 1 callersMethodsetup
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSASecurityProvider.java:40
↓ 1 callersMethodsign
(ThreadContext context, IRubyObject self, IRubyObject keypair, IRubyObject msg)
ext/ed25519_jruby/org/cryptorb/Ed25519Provider.java:52
↓ 1 callersMethodsquare
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:76
↓ 1 callersMethodsquareAndDouble
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:67
↓ 1 callersMethodsub
GroupElement subtraction using the twisted Edwards addition law with extended coordinates (Hisil2008). <p> $r = p - q$ <p> Negating $q$ means negating
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:697
↓ 1 callersMethodsubtractOne
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:53
↓ 1 callersMethodtoRadix16
Convert a to radix 16. <p> Method is package private only so that tests run. @param a $= a[0]+256 a[1]+...+256^{31} a[31]$ @return 64 bytes, each bet
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:788
↓ 1 callersMethodtoString
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:1030
↓ 1 callersMethodto_bytes
Return a bytestring representation of this signing key @return [String] signing key converted to a bytestring
lib/ed25519/signing_key.rb:55
↓ 1 callersMethodverify
(ThreadContext context, IRubyObject self, IRubyObject verify_key, IRubyObject signature, IRubyObject msg)
ext/ed25519_jruby/org/cryptorb/Ed25519Provider.java:72
↓ 1 callersMethodx_engineSign
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAEngine.java:219
↓ 1 callersMethodx_engineVerify
(byte[] sigBytes)
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAEngine.java:276
MethodBigIntegerFieldElement
(Field f, BigInteger bi)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:32
MethodBigIntegerScalarOps
(Field f, BigInteger l)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerScalarOps.java:23
MethodCurve
(Field f, byte[] d, FieldElement I)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Curve.java:33
MethodEd25519FieldElement
Creates a field element. @param f The underlying field, must be the finite field with $p = 2^{255} - 19$ elements @param t The $2^{25.5}$ bit represe
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java:40
MethodEdDSAEngine
No specific EdDSA-internal hash requested, allows any EdDSA key.
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAEngine.java:94
MethodEdDSAGenParameterSpec
(String stdName)
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSAGenParameterSpec.java:25
MethodEdDSANamedCurveSpec
(String name, Curve curve, String hashAlgo, ScalarOps sc, GroupElement B)
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSANamedCurveSpec.java:26
MethodEdDSAParameterSpec
@param curve the curve @param hashAlgo the JCA string for the hash algorithm @param sc the parameter L represented as ScalarOps @param B the parameter
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSAParameterSpec.java:43
MethodEdDSAPrivateKey
(EdDSAPrivateKeySpec spec)
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPrivateKey.java:55
MethodEdDSAPrivateKeySpec
@param seed the private key @param spec the parameter specification for this key @throws IllegalArgumentException if seed length is wrong or hash al
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSAPrivateKeySpec.java:37
MethodEdDSAPublicKey
(EdDSAPublicKeySpec spec)
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSAPublicKey.java:53
MethodEdDSAPublicKeySpec
@param pk the public key @param spec the parameter specification for this key @throws IllegalArgumentException if key length is wrong
ext/ed25519_jruby/net/i2p/crypto/eddsa/spec/EdDSAPublicKeySpec.java:32
MethodEdDSASecurityProvider
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/EdDSASecurityProvider.java:28
MethodField
(int b, byte[] q, Encoding enc)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/Field.java:43
MethodFieldElement
(Field f)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:24
MethodGroupElement
Creates a group element for a curve. @param curve The curve. @param repr The representation used to represent the group element. @param X The $X$ coo
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/GroupElement.java:207
FunctionInit_ed25519_ref10
ext/ed25519_ref10/ed25519_ref10.c:12
Methodadd
$h = f + g$ <p> TODO-CR BR: $h$ is allocated via new, probably not a good idea. Do we need the copying into temp variables if we do that? <p> Precondi
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java:77
MethodaddOne
()
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:45
Methodcmov
(FieldElement val, final int b)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/FieldElement.java:73
Methodcmov
(FieldElement val, int b)
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/bigint/BigIntegerFieldElement.java:107
Methodcmov
Constant-time conditional move. Well, actually it is a conditional copy. Logic is inspired by the SUPERCOP implementation at: https://github.com/flo
ext/ed25519_jruby/net/i2p/crypto/eddsa/math/ed25519/Ed25519FieldElement.java:957
Functioncrypto_hashblocks_sha512
ext/ed25519_ref10/sha512.c:140
← previousnext →101–200 of 276, ranked by callers