Dataset Viewer
Auto-converted to Parquet Duplicate
statement
stringlengths
1
8.57k
proof
stringlengths
0
182k
type
stringclasses
13 values
symbolic_name
stringlengths
1
89
library
stringclasses
73 values
filename
stringlengths
14
95
imports
listlengths
0
0
deps
listlengths
0
64
docstring
stringclasses
1 value
source_url
stringclasses
1 value
commit
stringclasses
1 value
hash_alg
= | MD5 | SHA1 | SHA224 | SHA256 | SHA384 | SHA512
type
hash_alg
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
hashSize
= function | MD5 -> 16 | SHA1 -> 20 | SHA224 -> 28 | SHA256 -> 32 | SHA384 -> 48 | SHA512 -> 64
let
hashSize
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
hash : alg:hash_alg -> bytes -> Tot (h:bytes{length h = hashSize alg})
assume val
hash
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bytes", "hashSize", "hash_alg", "length" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
hmac : alg:hash_alg -> bytes -> bytes -> Tot (h:bytes{length h = hashSize alg})
assume val
hmac
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bytes", "hashSize", "hash_alg", "length" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
hash_ctx : Type0
assume type
hash_ctx
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
digest_create : hash_alg -> EXT hash_ctx
assume val
digest_create
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "hash_alg", "hash_ctx" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
digest_update : hash_ctx -> bytes -> EXT unit
assume val
digest_update
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "hash_ctx", "unit" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
digest_final : hash_ctx -> EXT bytes
assume val
digest_final
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "hash_ctx" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
sig_alg
= | RSASIG | DSA | ECDSA | RSAPSS
type
sig_alg
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
block_cipher
= | AES_128_CBC | AES_256_CBC | TDES_EDE_CBC
type
block_cipher
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
stream_cipher
= | RC4_128
type
stream_cipher
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rsa_padding
= | Pad_none | Pad_PKCS1
type
rsa_padding
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
blockSize
= function | TDES_EDE_CBC -> 8 | AES_128_CBC -> 16 | AES_256_CBC -> 16
let
blockSize
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
aead_cipher
= | AES_128_GCM | AES_256_GCM | CHACHA20_POLY1305 | AES_128_CCM // "Counter with CBC-Message Authentication Code" | AES_256_CCM | AES_128_CCM_8 // variant with truncated 8-byte tags | AES_256_CCM_8
type
aead_cipher
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
aeadKeySize
= function | AES_128_CCM -> 16 | AES_128_CCM_8 -> 16 | AES_128_GCM -> 16 | AES_256_CCM -> 32 | AES_256_CCM_8 -> 32 | AES_256_GCM -> 32 | CHACHA20_POLY1305 -> 32
let
aeadKeySize
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
aeadRealIVSize (a:aead_cipher)
= 12
let
aeadRealIVSize
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "aead_cipher" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
aeadTagSize
= function | AES_128_CCM_8 -> 8 | AES_256_CCM_8 -> 8 | AES_128_CCM -> 16 | AES_256_CCM -> 16 | AES_128_GCM -> 16 | AES_256_GCM -> 16 | CHACHA20_POLY1305 -> 16
let
aeadTagSize
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
aead_encryptT: a: aead_cipher -> k: lbytes (aeadKeySize a) -> iv:lbytes (aeadRealIVSize a) -> ad:bytes -> plain:bytes -> GTot (lbytes (length plain + aeadTagSize a))
assume val
aead_encryptT
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "GTot", "aeadKeySize", "aeadRealIVSize", "aeadTagSize", "aead_cipher", "bytes", "lbytes", "length" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
aead_encrypt: a: aead_cipher -> k: lbytes (aeadKeySize a) -> iv:lbytes (aeadRealIVSize a) -> ad:bytes -> plain:bytes -> EXT (c:bytes {c = aead_encryptT a k iv ad plain})
assume val
aead_encrypt
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "aeadKeySize", "aeadRealIVSize", "aead_cipher", "aead_encryptT", "bytes", "lbytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
aead_decrypt: a: aead_cipher -> k: lbytes (aeadKeySize a) -> iv:lbytes (aeadRealIVSize a) -> ad:bytes -> cipher:bytes{length cipher >= aeadTagSize a} -> EXT (o:option (b:bytes{length b + aeadTagSize a = length cipher}) {forall (p:bytes). cipher = aead_encryptT a k iv ad p <==> (Some? o /\ Some?.v o == p...
assume val
aead_decrypt
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "aeadKeySize", "aeadRealIVSize", "aeadTagSize", "aead_cipher", "aead_encryptT", "bytes", "lbytes", "length", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rsa_key
= { rsa_mod : bytes; rsa_pub_exp : bytes; rsa_prv_exp : option bytes; }
type
rsa_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bytes", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dsa_params
= { dsa_p : bytes; dsa_q : bytes; dsa_g : bytes; }
type
dsa_params
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dsa_key
= { dsa_params : dsa_params; dsa_public : bytes; dsa_private : option bytes; }
type
dsa_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bytes", "dsa_params", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dh_params
= { dh_p : bytes; dh_g : bytes; dh_q : option bytes; safe_prime : bool; }
type
dh_params
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bool", "bytes", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dh_key
= { dh_params : dh_params; dh_public : bytes; dh_private : option bytes; }
type
dh_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bytes", "dh_params", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
block_encrypt : block_cipher -> bytes -> bytes -> bytes -> EXT bytes
assume val
block_encrypt
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "block_cipher", "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
block_decrypt : block_cipher -> bytes -> bytes -> bytes -> EXT bytes
assume val
block_decrypt
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "block_cipher", "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
cipher_stream : Type0
assume new type
cipher_stream
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
stream_encryptor : stream_cipher -> bytes -> EXT cipher_stream
assume val
stream_encryptor
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "cipher_stream", "stream_cipher" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
stream_decryptor : stream_cipher -> bytes -> EXT cipher_stream
assume val
stream_decryptor
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "cipher_stream", "stream_cipher" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
stream_process : cipher_stream -> bytes -> EXT bytes
assume val
stream_process
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "cipher_stream" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
stream_fini : cipher_stream -> EXT unit
assume val
stream_fini
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "cipher_stream", "unit" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
random : l:nat -> EXT (lbytes l)
assume val
random
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "lbytes", "nat" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rsa_gen_key : int -> EXT (k:rsa_key{Some? k.rsa_prv_exp})
assume val
rsa_gen_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "int", "rsa_key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rsa_encrypt : rsa_key -> rsa_padding -> bytes -> EXT bytes
assume val
rsa_encrypt
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "rsa_key", "rsa_padding" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rsa_decrypt : k:rsa_key{Some? k.rsa_prv_exp} -> rsa_padding -> bytes -> EXT (option bytes)
assume val
rsa_decrypt
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "option", "rsa_key", "rsa_padding" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rsa_sign : option hash_alg -> k:rsa_key{Some? k.rsa_prv_exp} -> pss:bool -> bytes -> EXT bytes
assume val
rsa_sign
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bool", "bytes", "hash_alg", "option", "rsa_key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
rsa_verify : option hash_alg -> rsa_key -> pss:bool -> bytes -> bytes -> EXT bool
assume val
rsa_verify
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bool", "bytes", "hash_alg", "option", "rsa_key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dsa_gen_key : int -> EXT (k:dsa_key{Some? k.dsa_private})
assume val
dsa_gen_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "dsa_key", "int" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dsa_sign : option hash_alg -> k:dsa_key{Some? k.dsa_private} -> bytes -> EXT bytes
assume val
dsa_sign
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "dsa_key", "hash_alg", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dsa_verify : option hash_alg -> dsa_key -> bytes -> bytes -> Tot bool
assume val
dsa_verify
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bool", "bytes", "dsa_key", "hash_alg", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dh_gen_params : int -> EXT dh_params
assume val
dh_gen_params
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "dh_params", "int" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dh_gen_key : p:dh_params -> EXT (k:dh_key{Some? k.dh_private /\ k.dh_params = p /\ length k.dh_public <= length p.dh_p})
assume val
dh_gen_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "dh_key", "dh_params", "length" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dh_agreement : k:dh_key{Some? k.dh_private} -> bytes -> EXT bytes
assume val
dh_agreement
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "dh_key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_curve
= | ECC_P256 | ECC_P384 | ECC_P521 | ECC_X25519 | ECC_X448
type
ec_curve
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_bytelen: ec_curve -> Tot (n:nat{n <= 127})
val
ec_bytelen
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "ec_curve", "nat" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_bytelen
= function | ECC_P256 -> 32 | ECC_P384 -> 48 | ECC_P521 -> 66 (* ceil(521/8) *) | ECC_X25519 -> 32 | ECC_X448 -> 56
let
ec_bytelen
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_params
= { curve: ec_curve; point_compression: bool; }
type
ec_params
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bool", "ec_curve" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_point
= { ecx : bytes; ecy : bytes; }
type
ec_point
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_key
= { ec_params : ec_params; ec_point : ec_point; ec_priv : option bytes; }
type
ec_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "bytes", "ec_params", "ec_point", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_is_on_curve: ec_params -> ec_point -> Tot bool
assume val
ec_is_on_curve
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bool", "ec_params", "ec_point" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ecdh_agreement: k:ec_key{Some? k.ec_priv} -> ec_point -> EXT bytes
assume val
ecdh_agreement
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "ec_key", "ec_point" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ecdsa_sign: option hash_alg -> k:ec_key{Some? k.ec_priv} -> bytes -> EXT bytes
assume val
ecdsa_sign
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bytes", "ec_key", "hash_alg", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ecdsa_verify: option hash_alg -> ec_key -> bytes -> bytes -> EXT bool
assume val
ecdsa_verify
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "bool", "bytes", "ec_key", "hash_alg", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
ec_gen_key: p:ec_params -> EXT (k:ec_key{Some? k.ec_priv /\ k.ec_params = p /\ length k.ec_point.ecx = ec_bytelen k.ec_params.curve /\ length k.ec_point.ecy = ec_bytelen k.ec_params.curve})
assume val
ec_gen_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "EXT", "ec_bytelen", "ec_key", "ec_params", "length" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
key
= | KeyRSA of rsa_key | KeyDSA of dsa_key | KeyECDSA of ec_key
type
key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "dsa_key", "ec_key", "rsa_key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
has_priv : key -> Type0
= function | KeyRSA k -> Some? k.rsa_prv_exp | KeyDSA k -> Some? k.dsa_private | KeyECDSA k -> Some? k.ec_priv
let
has_priv
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
validate_chain: der_list:list bytes -> for_signing:bool -> hostname:option string -> ca_file:string -> Tot bool
assume val
validate_chain
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bool", "bytes", "list", "option", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
get_key_from_cert: bytes -> Tot (option key)
assume val
get_key_from_cert
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bytes", "key", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
hash_and_sign: k:key{has_priv k} -> hash_alg -> bytes -> Tot bytes
assume val
hash_and_sign
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bytes", "has_priv", "hash_alg", "key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
verify_signature: key -> hash_alg -> tbs:bytes -> sigv:bytes -> Tot bool
assume val
verify_signature
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bool", "bytes", "hash_alg", "key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
load_chain: pemfile:string -> Tot (option (list bytes))
assume val
load_chain
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "bytes", "list", "option", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
load_key: keyfile:string -> Tot (option (k:key{has_priv k}))
assume val
load_key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/CoreCrypto.fst
[]
[ "Tot", "has_priv", "key", "option", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
key
= bytes & bytes
type
key
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
value
= bytes & bool
type
value
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "bool", "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dhdb : Type0
assume new type
dhdb
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
defaultFileName: string
assume val
defaultFileName
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
defaultDHPrimeConfidence: int
assume val
defaultDHPrimeConfidence
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "int" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
defaultPQMinLength: nat & nat
assume val
defaultPQMinLength
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "nat" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
create: string -> dhdb
assume val
create
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "dhdb", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
select: dhdb -> key -> option value
assume val
select
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "dhdb", "key", "option", "value" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
insert: dhdb -> key -> value -> dhdb
assume val
insert
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "dhdb", "key", "value" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
remove: dhdb -> key -> dhdb
assume val
remove
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "dhdb", "key" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
keys : dhdb -> list key
assume val
keys
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "dhdb", "key", "list" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
merge : dhdb -> string -> dhdb
assume val
merge
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "dhdb", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dh_check_params: dhdb -> int -> (int & int) -> bytes -> bytes -> option (dhdb & dh_params)
assume val
dh_check_params
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "bytes", "dh_params", "dhdb", "int", "option" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
dh_check_element: dh_params -> bytes -> bool
assume val
dh_check_element
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "bool", "bytes", "dh_params" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
load_default_params: string -> dhdb -> (int & int) -> (dhdb & dh_params)
assume val
load_default_params
contrib.CoreCrypto.fst
contrib/CoreCrypto/fst/DHDB.fst
[]
[ "dh_params", "dhdb", "int", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
loglevel
= | Trace | Debug | Info | Warning | Error
type
loglevel
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "Error" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
facility
= { name: string; level: list (loglevel); entries: list (loglevel * string * string); length: nat; }
type
facility
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "length", "level", "list", "loglevel", "name", "nat", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
create: (name:string) -> loglevel -> facility
assume val
create
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "loglevel", "name", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
delete: facility -> unit
assume val
delete
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "unit" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
retrieve: (name:string) -> facility
assume val
retrieve
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "name", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
clear: facility -> unit
assume val
clear
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "unit" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
get: facility -> nat -> loglevel * (name:string) * (value:string)
assume val
get
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "loglevel", "name", "nat", "string", "value" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
trim: facility -> nat -> unit
assume val
trim
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "nat", "unit" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
write: facility -> loglevel -> (name:string) -> (value:string) -> unit
assume val
write
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "loglevel", "name", "string", "unit", "value" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
writeout: facility -> loglevel -> (name:string) -> (value:string) -> unit
assume val
writeout
contrib.Log.fst
contrib/Log/fst/Log.fst
[]
[ "facility", "loglevel", "name", "string", "unit", "value" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
repr_bytes : nat -> GTot (n:nat{n>0})
assume val
repr_bytes
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "GTot", "nat" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
lemma_repr_bytes_values: n:nat -> Lemma ( ( n < 256 <==> repr_bytes n = 1 ) /\ ( (n >= 256 /\ n < 65536) <==> repr_bytes n = 2 ) /\ ( (n >= 65536 /\ n < 16777216) <==> repr_bytes n = 3 ) /\ ( (n >= 16777216 /\ n < 4294967296) <==> repr_bytes n = 4 ) /\ ( (n >= 4294967296 /\ n < 1...
assume val
lemma_repr_bytes_values
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "Lemma", "nat", "repr_bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
byte:Type0
= FStar.UInt8.t
let
byte
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
cbytes
= string (* abstract *) type bytes = Seq.seq byte
type
cbytes
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "byte", "bytes", "string" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
HasEq_bytes: hasEq bytes
assume
HasEq_bytes
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "bytes", "hasEq" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
seq_of_bytes: b:bytes -> GTot (Seq.seq byte)
val
seq_of_bytes
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "GTot", "byte", "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
seq_of_bytes b
= b
let
seq_of_bytes
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
op_At_Bar: bytes -> bytes -> Tot bytes
val
op_At_Bar
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "Tot", "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
op_At_Bar (b1:bytes) (b2:bytes)
= Seq.append b1 b2
let
op_At_Bar
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "bytes" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
length : bytes -> Tot nat
val
length
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "Tot", "bytes", "nat" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
length b
= Seq.length b
let
length
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
lbytes (l:nat)
= b:bytes{length b = l}
type
lbytes
contrib.Platform.fst
contrib/Platform/fst/Platform.Bytes.fst
[]
[ "bytes", "length", "nat" ]
https://github.com/FStarLang/FStar
24f4d85a6adb3cd9cbc8100c3f4b6d89d0c6bdee
End of preview. Expand in Data Studio

F-Star

A structured dataset of type declarations and definitions from F*, a proof-oriented programming language.

Source

Schema

Column Type Description
statement string Declaration signature/claim with the leading keyword removed (verbatim slice); the full declaration minus its proof
proof string Verbatim proof/body, empty if the declaration has none
type string Declaration keyword
symbolic_name string Declaration identifier
library string Sub-library
filename string Repository-relative source path
imports list[string] File-level Require/Import modules
deps list[string] Intra-corpus identifiers referenced
docstring string Preceding documentation comment, empty if absent
source_url string Upstream repository
commit string Upstream commit extracted

Statistics

  • Entries: 30,675
  • With proof: 20,304 (66.2%)
  • With docstring: 0 (0.0%)
  • Libraries: 73

By type

Type Count
let 19,014
val 8,442
type 1,482
instance 653
instance val 491
assume val 345
effect 82
class 59
exception 51
assume new type 26
new_effect 13
assume 12
assume type 5

Example

hashSize
= function
  | MD5    -> 16
  | SHA1   -> 20
  | SHA224 -> 28
  | SHA256 -> 32
  | SHA384 -> 48
  | SHA512 -> 64
  • type: let | symbolic_name: hashSize | contrib/CoreCrypto/fst/CoreCrypto.fst

Use

Each declaration is split into a statement (signature/claim) and a proof (body) that are disjoint and together form the complete declaration, for proof modeling, autoformalization, retrieval, and dependency analysis via deps.

Citation

@misc{f_star_dataset,
  title  = {F-Star},
  author = {Norton, Charles},
  year   = {2026},
  note   = {Extracted from https://github.com/FStarLang/FStar, commit 24f4d85a6adb},
  url    = {https://huggingface.co/datasets/phanerozoic/F-Star}
}
Downloads last month
71

Collection including phanerozoic/F-Star